How does the ember-cli-simple-auth-token library decodes/reads the jwt?

306 views Asked by At

The ember-cli-simple-auth-token documentation specifies that the jwt is decoded and read upon successful authentication with the backend. However I don't understand how it will decode the token, the jwt is originally created with a private key but I could not find any information in the docs about providing the required data for the jwt decryption process.

What am I missing? How does the library decodes the jwt? Am I encoding it in a non-standard way? Is there a configuration property in the library to specify where to find the corresponding public key or something?

Thanks a lot to whoever reads this and can help.

1

There are 1 answers

1
gcasanova On BEST ANSWER

Ok I went ahead and checked the library's code and revised the jwt specification For anyone wondering the same in the future, the token is base64 coded and decoded.

Im such a noob.