Support

Why am I getting a nil value when requesting a nonce?

If a user has been authenticated and you request a nonce, the nonce will come back nil. Layer will cache the user so will only need to re-authenticate if the user has been deauthenticated.  So you should check if the user is authenticated before request a nonce.

Have more questions? Submit a request