0.1.0 • Published 5 years ago
yiata-oidc v0.1.0
yiata-oidc
This component is based on 'iodc-client' that gives the access to all information about the user and how to enter the system.
Installation
npm i @haftcinco/yiata-oidc --save
Module
import { OidcService } from “@haftcinco/yiata-oidc”;
yiata-oidc functions
Here are some functions in yiata-oidc functions.
Function | Description |
---|---|
login | A function to login to the site. |
logout | A function to logout to the site. |
revoke | To Revoke the Access Token. |
getPromiseUser | To get the user's information as a promise. |
getUser | To get the user's information. |
isLoggedIn | To show if the user has logged in(true or false). |
getClaims | To get the user's 'claim' information. |
getAuthorizationHeaderValue | To get the user's 'authorization token'. |
getUserBalance | To get the user's 'balance' information. |
SaveUserIp | To store the user's 'IP'. |
getUserTypeScreens | To get the user's list of menu that can be used just in 'Backoffice' and 'Business'. |
hasScreenAccess | Shows the accessibility to the menu. |
0.1.0
5 years ago