Skip to main content

@nuclia/core / Exports / IAuthentication

Interface: IAuthentication

Implemented by

Table of contents

Methods

Methods

authenticate

authenticate(tokens): boolean

Parameters

NameType
tokensAuthTokens

Returns

boolean

Defined in

libs/sdk-core/src/lib/models.ts:57


deleteAuthenticatedUser

deleteAuthenticatedUser(): Observable<void>

Returns

Observable<void>

Defined in

libs/sdk-core/src/lib/models.ts:59


getAuthHeaders

getAuthHeaders(): Object

Returns

Object

Defined in

libs/sdk-core/src/lib/models.ts:53

getAuthHeaders(method, path): Object

Parameters

NameType
methodstring
pathstring

Returns

Object

Defined in

libs/sdk-core/src/lib/models.ts:54


getJWTUser

getJWTUser(): null | JwtUser

Returns

null | JwtUser

Defined in

libs/sdk-core/src/lib/models.ts:60


getRefreshToken

getRefreshToken(): string

Returns

string

Defined in

libs/sdk-core/src/lib/models.ts:56


getToken

getToken(force?): string

Parameters

NameType
force?boolean

Returns

string

Defined in

libs/sdk-core/src/lib/models.ts:55


hasLoggedOut

hasLoggedOut(): Observable<boolean>

Returns

Observable<boolean>

Defined in

libs/sdk-core/src/lib/models.ts:50


isAuthenticated

isAuthenticated(): Observable<boolean>

Returns

Observable<boolean>

Defined in

libs/sdk-core/src/lib/models.ts:49


login

login(username, password, validation?): Observable<boolean>

Parameters

NameType
usernamestring
passwordstring
validation?string

Returns

Observable<boolean>

Defined in

libs/sdk-core/src/lib/models.ts:51


logout

logout(): void

Returns

void

Defined in

libs/sdk-core/src/lib/models.ts:52


setPassword

setPassword(password): Observable<boolean>

Parameters

NameType
passwordstring

Returns

Observable<boolean>

Defined in

libs/sdk-core/src/lib/models.ts:58