Skip to content

Logout JWT

Prerequisites

The creation of JWT tokens will require install and setup library.

Depends job description

Interaction with the library functionality is done through a special Depends function that allows you to save the type of data being transferred and perform payload validation of tokens.

To log out of your account, you will need to pass access or refresh tokens to cookies, after which they will be deleted.

Examples

from quick_jwt import logout_depends

@app.get('/logout-depends')
async def logout_depends_endpoint(logout: logout_depends()):
    return