LoginWithJwt
method in Coherence.Cloud.IAuthClient
Methods
Task<LoginResult> LoginWithJwt(string token, CancellationToken cancellationToken = default)
Login to coherence Cloud using a custom JSON Web Token (JWT).
Parameters
| Type | Name | Description |
|---|---|---|
| string | token | JSON Web Token (JWT) to log in with. Signed with an asymmetric algorithm (such as RS256 or ES256). Must contain a valid “sub” value which is the external unique player ID. |
| CancellationToken | cancellationToken | Used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<LoginResult> | The status of the asynchronous login operation. |
Remarks
'JWT Auth Enabled' must be ticked and 'JKU Domain' and 'Public Key' configured in Project Settings on your Online Dashboard for this authentication method to be usable.