/auth
Search…
⌃K

React Functions

This page will include a table of all react functions from the SlashAuth react package.
Function Name
Description
​account​
Returns account information.
​checkSession​
Checks to see if a user has session.
​connect​
Connect a wallet to your dApp.
​connectedWallet​
Returns the connectedWallet string.
​getIdTokenClaims​
Decodes the ID token and returns the parsed claims.
​getRoleMetadata​
Role Metadata is data that is attached to a role. This allows developers to store a JSON object and retrieve it for specific roles.
​getTokens​
This function returns a user's access token.
​hasOrgRole​
Checks if a user has the role for an organizationID and roleName.
​hasRole​
Checks if a user has the role for a roleName.
​initialized​
Returns a boolean on whether SlashAuth is initialized.
​isAuthenticated​
Returns a boolean on whether the user is authenticated (are they logged in).
​isLoading​
Returns a boolean on whether SlashAuth is loading. This happens before it is initialized.
​logout​
Function to logout users from the app.
​mountDropDown​
Function that renders the DropDown component in the provided Div.
​mountSignIn​
Function that renders the SignIn component inside of the provided Div and allows for options to be passed in.
​openSignIn​
Function that opens the SignIn component.
Customization of the sign in modal appearance.
​