Table of Contents

LoginWithPlayStation

Methods
public static LoginOperation LoginWithPlayStation(string token, CancellationToken cancellationToken = default)

Login to coherence Cloud using a PlayStation Network account.

Parameters
Type Name Description
string token

A JWT ID token with link to the public certificate embedded.

CancellationToken cancellationToken
Returns
Type Description
LoginOperation

The status of the asynchronous login operation.

Remarks

'PSN Auth Enabled' must be ticked in Project Settings on your Online Dashboard for this authentication method to be usable.

Examples
using System.Threading.Tasks;
using Coherence.Cloud;
using UnityEngine;

class LoginWithPlayStation : MonoBehaviour
{
    public async Task<PlayerAccount> Login(string token)
    {
        PlayerAccount playerAccount = await CoherenceCloud.LoginWithPlayStation(token);
        Debug.Log($"Logged in as: {playerAccount}.");
        return playerAccount;
    }
}