Add user to flask.g
Created by: alesso-x
Add sub (short for subject aka user_id) to Flask.g. From anywhere in the application you may access the user by importing g from flask import g then g.get('sub', None).
and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here
Created by: alesso-x
Add sub (short for subject aka user_id) to Flask.g. From anywhere in the application you may access the user by importing g from flask import g then g.get('sub', None).