Skip to content

AuthService

injectable

Service handling authentication related issues.

Fetch information about the user currently logged in

fetchUser(): Observable<YuvUser>

Get the URL that entered the app. May be a deep link that could then be picked up again after user has been authenticated.

getInitialRequestUri(): Observable<literal type>

Get the current tenant or the previous one persisted locally

getTenant(): string
isLoggedIn(): boolean

Logs out the current user.

logout(): void
resetInitialRequestUri(): Observable<any>

Persists the initial request URI. This is nessesary to be able to redirect the user to the requested page after authentication. This is done on app initialization (core-init).

setInitialRequestUri(): void