#NEWLINE# @ classmethod #NEWLINE# def deserialize_token( cls , token ) : #NEWLINE# #INDENT# '\n        Obtain a user from de-serializing a signed token.\n\n        :param token: Signed token.\n        :type token: str\n        :return: User instance or None\n        ' #NEWLINE# private_key = TimedJSONWebSignatureSerializer ( current_app . config [ 'SECRET_KEY' ] ) #NEWLINE# try : #NEWLINE# #INDENT# decoded_payload = private_key . loads ( cls ) #NEWLINE# return User . find_by_identity ( decoded_payload . get ( 'user_email' ) ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return None