1.0.0
OAuth2.0 Implicit Grant authorization module.
(AuthInit)
Check the token exists. If the token does not exists, this method do nothing. please invoke "getToken" method for login.
If the token exists, verify the token has expired. And then, if the token is not expired, invoke "onLogin". Otherwise, invoke "onDenied" event.
(Object)
Name | Description |
---|---|
$0.onLogin any
|
|
$0.onDenied any
|
Promise<boolean>
:
Go to the login page for get token.
Disable current token.
Type: Object
(ClientAuthInit)