def generate_refresh_token(self): """Generate a random refresh token.""" return util.secret(self.token_length)
def generate_access_token(self): """Generate a random access token.""" return util.secret(self.token_length)