AuthService
injectable
Service handling authentication related issues.
Methods
Section titled “Methods”fetchUser
Section titled “fetchUser”Fetch information about the user currently logged in
fetchUser(): Observable<YuvUser>getInitialRequestUri
Section titled “getInitialRequestUri”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>getTenant
Section titled “getTenant”Get the current tenant or the previous one persisted locally
getTenant(): stringisLoggedIn
Section titled “isLoggedIn”isLoggedIn(): booleanlogout
Section titled “logout”Logs out the current user.
logout(): voidresetInitialRequestUri
Section titled “resetInitialRequestUri”resetInitialRequestUri(): Observable<any>setInitialRequestUri
Section titled “setInitialRequestUri”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