show example after api token generated

This commit is contained in:
MaysWind
2025-11-03 23:05:44 +08:00
parent 03c342f6f6
commit 7c3c1bbd6a
19 changed files with 49 additions and 7 deletions
+2 -1
View File
@@ -123,7 +123,8 @@ func (a *TokensApi) TokenGenerateAPIHandler(c *core.WebContext) (any, *errs.Erro
log.Infof(c, "[tokens.TokenGenerateAPIHandler] user \"uid:%d\" has generated api token, new token will be expired at %d", user.Uid, claims.ExpiresAt)
generateAPITokenResp := &models.TokenGenerateAPIResponse{
Token: token,
Token: token,
APIBaseUrl: a.CurrentConfig().RootUrl + "api",
}
return generateAPITokenResp, nil