Skip to content

KeyError: 'csrf' #31

@traubas

Description

@traubas

when trying to use create_access_token
i get an error
KeyError: 'csrf'

referring to:


def _get_csrf_token(encoded_token):
    secret = _get_secret_key()
    algorithm = get_algorithm()
    token = _decode_jwt(encoded_token, secret, algorithm)
    return token['csrf']

im running the app on my localhost.
i'm pretty much following the jwt_in_cookie example

any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions