deauthenticate()
Home > @gooddata/sdk-backend-spi > IAuthenticationProvider > deauthenticate
IAuthenticationProvider.deauthenticate() method
Clear existing authentication.
Signature:
deauthenticate(context: IAuthenticationContext, returnTo?: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
context | IAuthenticationContext | context in which the authentication is done |
returnTo | string | (Optional) url to redirect after successful logout |
Returns:
Promise<void>