Is there a way to refresh an existing auth token (a la OAuth 2 refresh grant type) instead of having to completely re-authenticate? If not, I’d like to request this as a feature request. It’s not a great idea to store client credentials in memory (or worse, on disk) in order to re-authenticate.
I know that the general suggestion is to create tokens that are expected to last longer than a single session, but for us, we have no way of knowing how long a single session might last.
Almost all of the existing authentication types available to Nakama are OAuth2 OpenID, so these should easily support refresh. The only one that wouldn’t is, of course, Email authentication, but this could have a custom refresh method added I would think.