Methods
2 min
- $pinc.auth.signOut
signout
Call this method when you want to sign out of the currently logged in provider. Internally this process revokes the privilege and clears any information about the cached session. Once SignedOut the callback in data-on-logged-out is invoked.
Example
//uses JQuery
$("signout-button").on("click",$pinc.auth.signout)
//_onLoggedOut is linked through the script data-on-logged-out attribute
function _onLoggedOut(){
//possibly redirect to login page...
}
Related