Validate authToken from Teams-js
I’m getting an auth token from the authentication module in the `microsoft/teams-js` library. Since I want to use the `preferred_username` to link users to existing accounts in my app, I need to validate that the auth token is legit. I’d like to validate against a public key that the JWT token has not been tampered with in my server code before I link users. How can I do this? My app is a django app on the backend.
I’m getting an auth token from the authentication module in the `microsoft/teams-js` library. Since I want to use the `preferred_username` to link users to existing accounts in my app, I need to validate that the auth token is legit. I’d like to validate against a public key that the JWT token has not been tampered with in my server code before I link users. How can I do this? My app is a django app on the backend. Read More