@nuclia/core / Exports / IAuthentication
Interface: IAuthentication
Implemented by
Table of contents
Methods
- authenticate
- deleteAuthenticatedUser
- getAuthHeaders
- getJWTUser
- getRefreshToken
- getToken
- hasLoggedOut
- isAuthenticated
- login
- logout
- setPassword
Methods
authenticate
▸ authenticate(tokens
): boolean
Parameters
Name | Type |
---|---|
tokens | AuthTokens |
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
Name | Type |
---|---|
method | string |
path | string |
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
Name | Type |
---|---|
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
Name | Type |
---|---|
username | string |
password | string |
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
Name | Type |
---|---|
password | string |
Returns
Observable
<boolean
>