#NEWLINE# def type_and_key( self , token ) : #NEWLINE# #INDENT# '\n        Return type of Token (A=Access code, T=Token, R=Refresh token) and\n        the session id.\n\n        :param token: A token\n        :return: tuple of token type and session id\n        ' #NEWLINE# msg = self . unpack ( token ) #NEWLINE# return ( self . type , self . db [ msg [ 'jti' ] ] )