AuthIndicator for Fender React UI Kit
Description
AuthIndicator is a simple component for SSO (Single Sign On). It allows you to redirect to the SSO app for sign in and out. It also displays the user's first name if passed.
Installation and Usage
yarn install @fenderdigital/react-auth-indicator --save
import AuthIndicator from '@fenderdigital/react-auth-indicator';
Props
-
name
- the users name, displays when logged in. -
signedIn
- boolean to show either the signed in/out documentation -
signInUrl
- string to go to SSO application for sign in. -
signOutUrl
- string to go to SSO application for sign out.
propName | propType | defaultValue | isRequired |
---|---|---|---|
name | string | 'User' | - |
signedIn | bool | false | - |
signInUrl | string | https://www.fender.com/connect/sign-in | - |
signOutUrl | string | https://www.fender.com/connect/sign-out | - |
Development
Check the Monorepo README for development documentation.