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

323 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 best solutions below

1
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.