# \#authentication

**URL:** https://forum.heroiclabs.com/tag/authentication/8.md

[Latest](https://forum.heroiclabs.com/latest.md) · [Categories](https://forum.heroiclabs.com/categories.md) · [Tags](https://forum.heroiclabs.com/tags.md)

---

## [Session invalidation](https://forum.heroiclabs.com/t/session-invalidation/6565)

<div class="topic-metadata">

**Author:** [@Mohsen](https://forum.heroiclabs.com/u/Mohsen)\
**Replies:** 1\
**Last updated:** [June 12, 2026, 1:20pm UTC](https://forum.heroiclabs.com/t/session-invalidation/6565 "2026-06-12T13:20:25Z")

</div>

Imagine an account that is logged in on 3 different devices, and each device has its own refresh token. If the account owner changes their password, or links a new authentication method (for example, Custom Auth), what …

---

## [Validate session token in different server env?](https://forum.heroiclabs.com/t/validate-session-token-in-different-server-env/4198)

<div class="topic-metadata">

**Author:** [@devcheetah](https://forum.heroiclabs.com/u/devcheetah)\
**Replies:** 3\
**Last updated:** [April 9, 2026, 6:01am UTC](https://forum.heroiclabs.com/t/validate-session-token-in-different-server-env/4198 "2026-04-09T06:01:21Z")

</div>

For context. I have a custom built UDP server handling actions for my game. I am using Nakama for everything else, storage,account management, etc. What I would like to do, is login with Nakama, pass the token through…

---

## [Google/Facebook Authentication Integration for Unity Windows Build](https://forum.heroiclabs.com/t/google-facebook-authentication-integration-for-unity-windows-build/6490)

<div class="topic-metadata">

**Author:** [@zaichenhu](https://forum.heroiclabs.com/u/zaichenhu)\
**Replies:** 0\
**Last updated:** [January 12, 2026, 7:49am UTC](https://forum.heroiclabs.com/t/google-facebook-authentication-integration-for-unity-windows-build/6490 "2026-01-12T07:49:30Z")

</div>

Has anyone successfully implemented Google or Facebook account authentication for Unity Windows desktop builds with Nakama? Are there any demo projects or recommended approaches for handling OAuth callbacks in standal…

---

## [RemapGoogleId() during AuthenticateGoogle() is not working for us after changing authentication from GPS V1 to GPS V2](https://forum.heroiclabs.com/t/remapgoogleid-during-authenticategoogle-is-not-working-for-us-after-changing-authentication-from-gps-v1-to-gps-v2/6206)

<div class="topic-metadata">

**Author:** [@MichalKrela](https://forum.heroiclabs.com/u/MichalKrela)\
**Replies:** 8\
**Last updated:** [September 30, 2025, 10:55am UTC](https://forum.heroiclabs.com/t/remapgoogleid-during-authenticategoogle-is-not-working-for-us-after-changing-authentication-from-gps-v1-to-gps-v2/6206 "2025-09-30T10:55:46Z")

</div>

We moved from depracated Google Play Services V1 to new version in our game. We had to change how our game is authenticating with Google Play Services: before the change, we used TokenID, now we use ServerAuthCode. In o…

---

## [Calling RPCs with a HTTP key via POST when a payload is provided](https://forum.heroiclabs.com/t/calling-rpcs-with-a-http-key-via-post-when-a-payload-is-provided/3498)

<div class="topic-metadata">

**Author:** [@chakie](https://forum.heroiclabs.com/u/chakie)\
**Replies:** 3\
**Last updated:** [September 18, 2025, 5:42pm UTC](https://forum.heroiclabs.com/t/calling-rpcs-with-a-http-key-via-post-when-a-payload-is-provided/3498 "2025-09-18T17:42:30Z")

</div>

While checking out the new releases we stumbled upon this line mentioned in the new Unity client lib release: Nakama: Adds support for calling RPCs with a HTTP key via POST when a payload is provided. See Releases · he…

---

## [Does authentication in nakama server using steam, google or game center auto check ownership in backend?](https://forum.heroiclabs.com/t/does-authentication-in-nakama-server-using-steam-google-or-game-center-auto-check-ownership-in-backend/6402)

<div class="topic-metadata">

**Author:** [@slind](https://forum.heroiclabs.com/u/slind)\
**Replies:** 1\
**Last updated:** [September 15, 2025, 10:14am UTC](https://forum.heroiclabs.com/t/does-authentication-in-nakama-server-using-steam-google-or-game-center-auto-check-ownership-in-backend/6402 "2025-09-15T10:14:57Z")

</div>

Have looked into game shop ownership check a little. As the title says, does nakama server already done this like below link described? Steam: User Authentication and Ownership (Steamworks Documentation) Google Play St…

---

## [The Secret KEY to authenticate](https://forum.heroiclabs.com/t/the-secret-key-to-authenticate/6374)

<div class="topic-metadata">

**Author:** [@gruset](https://forum.heroiclabs.com/u/gruset)\
**Replies:** 0\
**Last updated:** [August 8, 2025, 10:57am UTC](https://forum.heroiclabs.com/t/the-secret-key-to-authenticate/6374 "2025-08-08T10:57:15Z")

</div>

Hello! According to the documentation: The server has built-in authentication so clients can only send requests and connect if they have the server key. The default server key is defaultkey but it is very important to …

---

## [IAP validation for IOS causing server disconnect issue](https://forum.heroiclabs.com/t/iap-validation-for-ios-causing-server-disconnect-issue/6354)

<div class="topic-metadata">

**Author:** [@Rojash](https://forum.heroiclabs.com/u/Rojash)\
**Replies:** 3\
**Last updated:** [August 5, 2025, 11:46am UTC](https://forum.heroiclabs.com/t/iap-validation-for-ios-causing-server-disconnect-issue/6354 "2025-08-05T11:46:14Z")

</div>

Title- Socket gets disconnected when i try to send receipt to server using RPC Description-MIIXSAYJKoZIhvcNAQcCoIIXOTCCFzUCAQExDzANBglghkgBZQMEAgEFADCCBn4GCSqGSIb3DQEHAaCCBm8EggZrMYIGZzAKAgEIAgEBBAIWADAKAgEUAgEBBAIMADAL…

---

## [One Nakama Instance many games](https://forum.heroiclabs.com/t/one-nakama-instance-many-games/6335)

<div class="topic-metadata">

**Author:** [@MightyPossum](https://forum.heroiclabs.com/u/MightyPossum)\
**Replies:** 1\
**Last updated:** [July 30, 2025, 10:08am UTC](https://forum.heroiclabs.com/t/one-nakama-instance-many-games/6335 "2025-07-30T10:08:17Z")

</div>

I am planning our studios Nakama server setup (just on-prem for now) And we want some shared accounts, and possibly some shared data between our games. It’s mostly server authoritative games, with no real-time multipla…

---

## [Apple Link overrides email](https://forum.heroiclabs.com/t/apple-link-overrides-email/6330)

<div class="topic-metadata">

**Author:** [@MinatoTW](https://forum.heroiclabs.com/u/MinatoTW)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 10:23am UTC](https://forum.heroiclabs.com/t/apple-link-overrides-email/6330 "2025-07-23T10:23:48Z")

</div>

Hello, We’re already using email as the primary authentication method. We also added an option to link their apple ID to login that way. The issue is that while linking it overrides the email with their apple email. How…

---

## [Getting error=Post "": unsupported protocol scheme "" with Google Authentication](https://forum.heroiclabs.com/t/getting-error-post-unsupported-protocol-scheme-with-google-authentication/6316)

<div class="topic-metadata">

**Author:** [@zee-imaginationai](https://forum.heroiclabs.com/u/zee-imaginationai)\
**Replies:** 9\
**Last updated:** [July 15, 2025, 11:35am UTC](https://forum.heroiclabs.com/t/getting-error-post-unsupported-protocol-scheme-with-google-authentication/6316 "2025-07-15T11:35:48Z")

</div>

Hi I am trying to Authenticate Nakama with Google using Google Play Games Service in Unity. I have setup Google Cloud OAuth (tried oauth in OAuth Playground and it is working correctly) but when I try to authenticate in-…

---

## [Problems with AuthenticateTokenGenerate and Session Use](https://forum.heroiclabs.com/t/problems-with-authenticatetokengenerate-and-session-use/6297)

<div class="topic-metadata">

**Author:** [@sadegh-askari](https://forum.heroiclabs.com/u/sadegh-askari)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 9:29am UTC](https://forum.heroiclabs.com/t/problems-with-authenticatetokengenerate-and-session-use/6297 "2025-07-03T09:29:06Z")

</div>

Hi, I’m implementing a custom authentication flow using Unity for the client and Go for the backend code, and I’ve run into two problems. 1. AuthenticateTokenGenerate does not return a refresh token initializer.Registe…

---

## [Authentication or SignIn with Google new PlayGamesServices 0.11.01](https://forum.heroiclabs.com/t/authentication-or-signin-with-google-new-playgamesservices-0-11-01/3303)

<div class="topic-metadata">

**Author:** [@oscargoldman](https://forum.heroiclabs.com/u/oscargoldman)\
**Replies:** 11\
**Last updated:** [June 27, 2025, 9:06am UTC](https://forum.heroiclabs.com/t/authentication-or-signin-with-google-new-playgamesservices-0-11-01/3303 "2025-06-27T09:06:02Z")

</div>

We’re looking for advice or comments related to Unity and the newest version of Google Play Games 0.11.01. It seems the latest Play Games services sdk no longer exposes the player id token, which Nakama needs to authenti…

---

## [Hiro in Unity with Email Authentication workflow](https://forum.heroiclabs.com/t/hiro-in-unity-with-email-authentication-workflow/6193)

<div class="topic-metadata">

**Author:** [@kroonhorstdino](https://forum.heroiclabs.com/u/kroonhorstdino)\
**Replies:** 4\
**Last updated:** [June 4, 2025, 2:09pm UTC](https://forum.heroiclabs.com/t/hiro-in-unity-with-email-authentication-workflow/6193 "2025-06-04T14:09:10Z")

</div>

Hello, are there any sample for Hiro + Unity using the email based authentication workflow? The default sample for Unity uses the Device Authentication. When I try to use Client.AuthenticateEmailAsync, neither session …

---

## [Can we provide a custom userId during custom authentication?](https://forum.heroiclabs.com/t/can-we-provide-a-custom-userid-during-custom-authentication/6162)

<div class="topic-metadata">

**Author:** [@surajTLabs](https://forum.heroiclabs.com/u/surajTLabs)\
**Replies:** 0\
**Last updated:** [April 19, 2025, 5:53am UTC](https://forum.heroiclabs.com/t/can-we-provide-a-custom-userid-during-custom-authentication/6162 "2025-04-19T05:53:36Z")

</div>

Is there a way to provide our own userId during custom authentication in Nakama, instead of letting Nakama generate one automatically? We have a backend-managed personId which is guaranteed to be unique and in UUID form…

---

## [Password hashing possibility in Go runtime module](https://forum.heroiclabs.com/t/password-hashing-possibility-in-go-runtime-module/6081)

<div class="topic-metadata">

**Author:** [@Norvaisas](https://forum.heroiclabs.com/u/Norvaisas)\
**Replies:** 3\
**Last updated:** [March 14, 2025, 5:57pm UTC](https://forum.heroiclabs.com/t/password-hashing-possibility-in-go-runtime-module/6081 "2025-03-14T17:57:30Z")

</div>

Hello all, I have a question - I’ve been working on my game which will have a standalone sign-up/login on the Godot side and have been thinking of how I could implement forgot-password functionality without giving out th…

---

## [How To Use ParrelSync for testing nakama multiplayer in unity](https://forum.heroiclabs.com/t/how-to-use-parrelsync-for-testing-nakama-multiplayer-in-unity/6037)

<div class="topic-metadata">

**Author:** [@tgamer](https://forum.heroiclabs.com/u/tgamer)\
**Replies:** 0\
**Last updated:** [February 24, 2025, 1:56pm UTC](https://forum.heroiclabs.com/t/how-to-use-parrelsync-for-testing-nakama-multiplayer-in-unity/6037 "2025-02-24T13:56:54Z")

</div>

Things are working fine on my main project file in unity but for the clone project which I have created from the ParrelSync that is not working, in main project the clone project player is spawning but in the cloned proj…

---

## [Custom Nakama Web Client](https://forum.heroiclabs.com/t/custom-nakama-web-client/5989)

<div class="topic-metadata">

**Author:** [@EarthAdam](https://forum.heroiclabs.com/u/EarthAdam)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 2:40pm UTC](https://forum.heroiclabs.com/t/custom-nakama-web-client/5989 "2025-02-03T14:40:24Z")

</div>

I’ve had a Nakama game server running on a Postgres database for years now. I want to integrate 3rd-party integrations into my app that I built in Unity (i.e. Garmin), and I want to do this via a web-portal since Unity i…

---

## [Nakama sometimes can't be authenticate](https://forum.heroiclabs.com/t/nakama-sometimes-cant-be-authenticate/5876)

<div class="topic-metadata">

**Author:** [@amhakunrealdev](https://forum.heroiclabs.com/u/amhakunrealdev)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 4:00am UTC](https://forum.heroiclabs.com/t/nakama-sometimes-cant-be-authenticate/5876 "2024-12-19T04:00:58Z")

</div>

Hi Devs, I need some help with my Nakama, which sometimes does not authenticate properly. When it can’t authenticate, it will throw an error like heartbeat failure in logs. Even if it is successful in auth, it will dis…

---

## [Google Sign in is not working as expected in nakama](https://forum.heroiclabs.com/t/google-sign-in-is-not-working-as-expected-in-nakama/5826)

<div class="topic-metadata">

**Author:** [@Rojash](https://forum.heroiclabs.com/u/Rojash)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 10:44am UTC](https://forum.heroiclabs.com/t/google-sign-in-is-not-working-as-expected-in-nakama/5826 "2024-11-22T10:44:48Z")

</div>

So i am getting this error in my server console {“level”:“warn”,“ts”:“2024-11-21T10:52:58.057Z”,“caller”:“social/social.go:974”,“msg”:“error response code from social request”,“provider”:“google play services”,“code”:40…

---

## [Help needed about Befores Hooks and session](https://forum.heroiclabs.com/t/help-needed-about-befores-hooks-and-session/5694)

<div class="topic-metadata">

**Author:** [@wizk](https://forum.heroiclabs.com/u/wizk)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 1:28pm UTC](https://forum.heroiclabs.com/t/help-needed-about-befores-hooks-and-session/5694 "2024-10-22T13:28:15Z")

</div>

Hello, I’d like to implement a server-side application version check. With initializer.registerBeforeAuthenticate it works perfectly and stops authentication if the client version is older. However, if the player has …

---

## [Can't change default login and password for Nakama Console](https://forum.heroiclabs.com/t/cant-change-default-login-and-password-for-nakama-console/3094)

<div class="topic-metadata">

**Author:** [@Noizless](https://forum.heroiclabs.com/u/Noizless)\
**Replies:** 4\
**Last updated:** [October 17, 2024, 1:37pm UTC](https://forum.heroiclabs.com/t/cant-change-default-login-and-password-for-nakama-console/3094 "2024-10-17T13:37:05Z")

</div>

Versions: Nakama {3.13.1+2000e4b8}, {Docker Compose} Hello everyone. I’m the new one of Nakama user. My Nakama Server is working. I could connect to the Nakama Console but I couldn’t change default login and password fo…

---

## [Recommendation for temporary accounts solution](https://forum.heroiclabs.com/t/recommendation-for-temporary-accounts-solution/5642)

<div class="topic-metadata">

**Author:** [@cramos73](https://forum.heroiclabs.com/u/cramos73)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 11:49pm UTC](https://forum.heroiclabs.com/t/recommendation-for-temporary-accounts-solution/5642 "2024-09-20T23:49:29Z")

</div>

Hi, First post here. I have a unique problem and I would like to hear what the best solution would be. Requirements: I want to make a simple web game with no authentication and use Nakama for relayed matches using the…

---

## [Require example of logging in from a unity server to nakama](https://forum.heroiclabs.com/t/require-example-of-logging-in-from-a-unity-server-to-nakama/5651)

<div class="topic-metadata">

**Author:** [@jell-o-fishi](https://forum.heroiclabs.com/u/jell-o-fishi)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 4:49pm UTC](https://forum.heroiclabs.com/t/require-example-of-logging-in-from-a-unity-server-to-nakama/5651 "2024-09-18T16:49:53Z")

</div>

I manage to login from the unity client to nakama with AuthenticateDeviceAsync. Currently i am using the same authentication method from the server. The documentation states that server logins will not have a user ID, …

---

## [Implementing a (sort of) secure server to server session for an authoritative game](https://forum.heroiclabs.com/t/implementing-a-sort-of-secure-server-to-server-session-for-an-authoritative-game/5513)

<div class="topic-metadata">

**Author:** [@jyumay](https://forum.heroiclabs.com/u/jyumay)\
**Replies:** 0\
**Last updated:** [July 24, 2024, 8:15pm UTC](https://forum.heroiclabs.com/t/implementing-a-sort-of-secure-server-to-server-session-for-an-authoritative-game/5513 "2024-07-24T20:15:13Z")

</div>

What am I trying to do? I want to create a headless godot “super client” (host?) to handle physics and other game logic that would benefit from godot’s existing libraries. I want the “super client” to be the only clien…

---

## [Invalid Grant Malformed Auth Code](https://forum.heroiclabs.com/t/invalid-grant-malformed-auth-code/5413)

<div class="topic-metadata">

**Author:** [@khamarr3524](https://forum.heroiclabs.com/u/khamarr3524)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 6:31am UTC](https://forum.heroiclabs.com/t/invalid-grant-malformed-auth-code/5413 "2024-07-03T06:31:42Z")

</div>

Versions: Nakama {3.20.0}, {Docker}, {Godot 3.5.3} Server Framework Runtime language (If relevant) {Go, Lua} Hello, I’m having some issues with the Google Auth. Not sure if I’m just not as good at searching as I used t…

---

## [WebGL Authentication : Insecure connection not allowed](https://forum.heroiclabs.com/t/webgl-authentication-insecure-connection-not-allowed/5404)

<div class="topic-metadata">

**Author:** [@KGS](https://forum.heroiclabs.com/u/KGS)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 3:05pm UTC](https://forum.heroiclabs.com/t/webgl-authentication-insecure-connection-not-allowed/5404 "2024-07-01T15:05:18Z")

</div>

Hi I’m Developed Unity Webgl game. Its work fine when its work on Editor/Mobile but its not work in Webgl the error i get m\_Client = new Client("http", m\_Host,7350, "defaultkey",UnityWebRequestAdapter.Instance)…

---

## [CORS Issue with Local Nakama Server and Unity WebGL(HTTP)](https://forum.heroiclabs.com/t/cors-issue-with-local-nakama-server-and-unity-webgl-http/5376)

<div class="topic-metadata">

**Author:** [@steven060594](https://forum.heroiclabs.com/u/steven060594)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 6:36am UTC](https://forum.heroiclabs.com/t/cors-issue-with-local-nakama-server-and-unity-webgl-http/5376 "2024-06-24T06:36:53Z")

</div>

Hello, I have trouble with CORS when authenticating to get a session with the Nakama server running on localhost. Is it possible to fix this issue without HTTPS? Thank you! {Details} Unity WebGL game is hosted on E…

---

## [Steam Authentication - Invalid Ticket Error 101](https://forum.heroiclabs.com/t/steam-authentication-invalid-ticket-error-101/5375)

<div class="topic-metadata">

**Author:** [@khamarr3524](https://forum.heroiclabs.com/u/khamarr3524)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 4:33pm UTC](https://forum.heroiclabs.com/t/steam-authentication-invalid-ticket-error-101/5375 "2024-06-20T16:33:17Z")

</div>

I’m having issues with integrating Steam authentication into my project. Initially it was sporadic, but as of now it is a constant issue. Steam is loading and verifying correctly however when I pass the ticket to Nakama …

---

## [Client side session validation](https://forum.heroiclabs.com/t/client-side-session-validation/5382)

<div class="topic-metadata">

**Author:** [@amirhoseinjfri](https://forum.heroiclabs.com/u/amirhoseinjfri)\
**Replies:** 0\
**Last updated:** [June 20, 2024, 4:29pm UTC](https://forum.heroiclabs.com/t/client-side-session-validation/5382 "2024-06-20T16:29:34Z")

</div>

hi is there any session validation check before trying to use like var account = await client.GetAccountAsync(session); inside unity ? i mean if inside console i delete user then user try to use or connect any client …

[Next page](https://forum.heroiclabs.com/tag/authentication/8.md?match_all_tags=true&page=1&tags%5B%5D=authentication)
