code | type | title | description |
---|---|---|---|
true |
page |
getMyCredentials |
Returns the current user's credential information for the specified strategy. |
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 |
Additional query options
Property | Type (default) |
Description |
---|---|---|
queuable |
boolean ( true ) |
If true, queues the request during downtime, until connected to Kuzzle again |
An object
representing the credentials for the provided authentication strategy.
Its content depends on the authentication strategy.
<<< ./snippets/get-my-credentials.js