Skip to main content

User Profile

The UserProfile template renders the user profile page.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {UserProfile} from '@selfcommunity/react-templates';

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}><UserProfile/></SCContextProvider>
);
}