flask_graphql_auth.main module

class flask_graphql_auth.main.GraphQLAuth(app=None)[source]

Bases: object

An object used to hold JWT settings for the Flask-GraphQL-Auth extension.

Instances of GraphQLAuth are not bound to specific apps, so you can create one in the main body of your code and then bind it to your app in a factory function.

init_app(app)[source]

Register this extension with the flask app.

Parameters:app – A flask application