code | type | title | description |
---|---|---|---|
true |
page |
GetMyCredentialsAsync |
Returns the current user's credential information for the specified strategy. |
Returns the current user's credential information for the specified strategy. The data returned will depend on the specified strategy. The result can be an empty string.
public async Task<JObject> GetMyCredentialsAsync(string strategy);
Argument | Type | Description |
---|---|---|
strategy |
string |
Strategy to use |
Returns a JObject representing the credentials for the provided authentication strategy.
Throws a KuzzleException
if there is an error. See how to handle error.
<<< ./snippets/get-my-credentials.cs