mardi 22 janvier 2019

Laravel - anonymous JWT-Token

I'm writing an app at the moment where every user is choosing a name and can interact with other users.

I don't want to save these names. They can be non-unique and recreated or changed whenever necessary.

But I need a possibility to identify users for my web-socket-connection.

I'm thinking of a JWT with a unique ID and the choosen name.

Can someone please point me in the right direction how to issue these JWTs and get a user-object for them without having a database.

In case this is important: I want to use Redis, laravel-echo-server and an Angular-7-Client. This seems to work fine for the time beeing but presence-channels would make my life much easier.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire