Skip to content

Instantly share code, notes, and snippets.

@Bijitakc
Created December 16, 2023 17:57
Show Gist options
  • Save Bijitakc/0d12cc006b0eea8a7e58714f73fb6ac9 to your computer and use it in GitHub Desktop.
Save Bijitakc/0d12cc006b0eea8a7e58714f73fb6ac9 to your computer and use it in GitHub Desktop.
from flask import g
from core.auth_app import bp
from core.decorators import login_required
@bp.route('/test', methods=['GET'])
@login_required
def test():
context = {
"user_id": g.user_id,
"email": g.user
}
return context, 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment