isAuthenticated()
Home > @gooddata/sdk-backend-spi > IAnalyticalBackend > isAuthenticated
IAnalyticalBackend.isAuthenticated() method
Tests authentication against this backend.
Signature:
isAuthenticated(): Promise<IAuthenticatedPrincipal | null>;
Returns:
Promise<IAuthenticatedPrincipal | null>
promise of authenticated principal is returned if authenticated, null is returned if not authenticated.
Remarks
This requires network communication and is thus asynchronous. If the current backend (or session it lives in) is not authenticated, then this method MUST NOT call the authentication provider.