Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.25 KB

File metadata and controls

44 lines (29 loc) · 1.25 KB
code type title description
true
page
getMyCredentials
Returns the current user's credential information for the specified strategy.

getMyCredentials

Returns credentials information for the currently logged in user.

The returned data depends on the given authentication strategy, and should never include any sensitive information.

The result can be an empty object.


getMyCredentials(strategy, [options]);

Arguments Type Description
strategy
string
Strategy to use
options
object
Query options

options

Additional query options

Property Type
(default)
Description
queuable
boolean

(true)
If true, queues the request during downtime, until connected to Kuzzle again

Resolves

An object representing the credentials for the provided authentication strategy. Its content depends on the authentication strategy.

Usage

<<< ./snippets/get-my-credentials.js