Skip to content

Commit 601886c

Browse files
fix: failing handler test due to bot token identifier mismatch
1 parent f33780c commit 601886c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/handler/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func (h *Handler) CreateBotToken(w http.ResponseWriter, r *http.Request) {
403403
h.respondJSON(w, http.StatusCreated, BotTokenResponse{
404404
TokenID: token.TokenID,
405405
Name: token.Name,
406-
Token: formatBotToken(token.TokenID, rawToken), // Only returned on creation
406+
Token: rawToken, // Only returned on creation
407407
CreatedAt: token.CreatedAt.Time,
408408
ExpiresAt: fromPgTimestamp(token.ExpiresAt),
409409
IsActive: token.IsActive.Bool,

0 commit comments

Comments
 (0)