Closed PawanKolhe closed 3 years ago
JWT token sent back to user after login, which has the discord_id encoded in it. The frontend will use this token to make authenticated requests.
discord_id
@app.route("/") @jwt_required() def foo(): discord_id = get_jwt_identity() # decoding payload from jwt token return f"Discord ID: {discord_id}"
Fixes #40
Description
JWT token sent back to user after login, which has the
discord_id
encoded in it. The frontend will use this token to make authenticated requests.Example of Authenticated route
Fixes #40
Type of change
Checklist: