TypeScript

Typescript...

Types

Types are exported.

import type { ITokenSSO } from '@token-public-org/token-sso-react-library';

// Use "ITokenSSO" with your own

//Ex: You want to store user details in state and you need to type.
const [user,setUser] = useState<ITokenSSO.TSSOProvider.ISSOUserDetails>({}) ;

References

ISSOUserDetails

key
type

merchantId

string

userId

string

email

string

name

string

ILoginProps

key
type
required

redirectUri

string

no

ILogoutProps

key
type
required

withRedirect

boolean

no

redirectUri

string

no

IProviderProps

key
type
required

children

ReactNode

yes

providerUrl

string

yes

Last updated