public async Task <IActionResult> Get(string username, string pw) { Token token = secretManager.findToken(username, pw); if (token.Tokenstring == null) { return(BadRequest("Username/PW falsch")); } return(Ok(token.Tokenstring.ToString())); }