

def _create_token_for_user(self, username, ttl=None):
    tokendb = create_token(username=username, ttl=ttl)
    return TokenAPI.from_model(tokendb)

dataset/ETHPy150Open StackStorm/st2/st2auth/st2auth/controllers/v1/auth.py TokenController._create_token_for_user/original