Can i use same guardian secret to other phoenix projects?

I am planning to make posts, comments, products, users + authentication in separate phoenix projects. If my authentication give me guardian token, will it work through out all projects if use the same guardian secret key for all?

1 Like

That is the purpose of it, for servers that share nothing (no database or anything) then a JWT is perfectly suited for passing authorization information. :slight_smile:

(If they do share a database or so, just use it instead via a normal phoenix token.)

1 Like

thanks man that answers my question

2 Likes