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

keytype

merchantId

string

userId

string

email

string

name

string

ILoginProps

keytyperequired

redirectUri

string

no

ILogoutProps

keytyperequired

withRedirect

boolean

no

redirectUri

string

no

IProviderProps

keytyperequired

children

ReactNode

yes

providerUrl

string

yes

Last updated