I have a Vue.js SPA and is trying to communicate with a Python (FastAPI) backend API. Unfortunately, I am unable to decode the token headers.
In particular, the line
unverified_header = jwt.get_unverified_header(token)
is failing with an error,
jose.exceptions.JWTError: Error decoding token headers.
I am getting the token on the clientside with a call to:
const token = await this.$auth.getTokenSilently();
as indicated in the documentation. However, the token which this generates (and which is successfully passed to the Python side" looks something like,
Which looks not much like JWTs that I’ve worked with previously. Am I missing something here?