refaelos
refaelos

Reputation: 8075

Rails 3 devise "token per client"

I want to use devise's tokens to support logging in/out in multiple clients at once. The problem is that today there's only one authentication token per user.

With today's devise i can: 1. Use the same token for all clients. 2. Reset the token on every login (and lose the login on other devices).

What i want i a the ability to create multiple tokens (one for each client). Does devise has that option? Is there any other plugin?

Thanks,

Upvotes: 3

Views: 1199

Answers (1)

refaelos
refaelos

Reputation: 8075

I solved it and wrote my solution in my blog: http://www.refaelos.com/post/20664288136/multiple-token-authentication-with-devise-redis?2c914400

Upvotes: 1

Related Questions