Skip to main content

Account Recover

The Account Recover component allows users to recover their account with their email.
This component is composed of a simple email form and a "recover account" button that submits the request.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {AccountRecover} from '@selfcommunity/react-ui';

function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><AccountRecover /></SCContextProvider>
);
}