> For the complete documentation index, see [llms.txt](https://developer.tokeninc.com/token-developer-portal-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.tokeninc.com/token-developer-portal-1/x-platform/token-x-admin-panel-integrations/authentication-integration/internal/api-reference/shooks/usesso.md).

# useSSO

### Return Object

| key           | value type                                                                                                                                                     | description                |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| roles         | string\[]                                                                                                                                                      | User Role array            |
| token         | string                                                                                                                                                         | User Access Token          |
| refreshToken  | string                                                                                                                                                         | User Refresh Token         |
| userDetails   | [ISSOUserDetails](/token-developer-portal-1/x-platform/token-x-admin-panel-integrations/authentication-integration/internal/typescript.md#issouserdetails)     | Authenticated User Details |
| authenticated | boolean                                                                                                                                                        | Is User Authenticated      |
| login         | function([ILoginProps](/token-developer-portal-1/x-platform/token-x-admin-panel-integrations/authentication-integration/internal/typescript.md#iloginprops))   | Login Function             |
| logout        | function([ILogoutProps](/token-developer-portal-1/x-platform/token-x-admin-panel-integrations/authentication-integration/internal/typescript.md#ilogoutprops)) | Logout Function            |
| initialized   | boolean                                                                                                                                                        | Is SSO Initialized         |
