To generate token(s) with the grant type authorization_code, call generateTokenFromCode() Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/4ff850f48629a-generate-token for more details.
To get the missing fields after login, call getMissingFields(). Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/aappczju1t3uh-precheck-information for more details.
Optional
headers: HTTPRequestHeaderTo initiate device code, call initiateDeviceCode(). Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/b6d284f55be5e-authorization-request for more details.
Optional
clientId: stringTo get precheck result after login, call loginPrecheck(). If there is missing information, user will be redirected to either accepting consent, changing password, continuing MFA process, or do progressive registration Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/aappczju1t3uh-precheck-information for more details.
Optional
headers: HTTPRequestHeaderTo check access token without having to call cidaas api, call offlineTokenCheck(). THe function will return true if the token is valid & false if the token is invalid.
To verify device code, call deviceCodeVerify().