(self, identity)
return token
return both refresh and access token
return both refresh and access token
return both refresh and access token
def create_token(self, identity):
        """return both refresh and access token"""
        token = dict(access_token=create_access_token(identity=identity),
                     refresh_token=create_refresh_token(identity=identity))
        return token
def create_token ( self , identity ) : token = dict ( access_token = create_access_token ( identity = identity ) , refresh_token = create_refresh_token ( identity = identity ) ) return token