This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from flask.sessions import SecureCookieSessionInterface | |
from itsdangerous import URLSafeTimedSerializer | |
class SimpleSecureCookieSessionInterface(SecureCookieSessionInterface): | |
# Override method | |
# Take secret_key instead of an instance of a Flask app | |
def get_signing_serializer(self, secret_key): | |
if not secret_key: | |
return None |