diff --git a/backend/internal/handler/user.go b/backend/internal/handler/user.go index 0601a0f..6058e5b 100644 --- a/backend/internal/handler/user.go +++ b/backend/internal/handler/user.go @@ -148,7 +148,7 @@ func createOneTimeAccessTokenHandler(c *gin.Context) { return } - c.JSON(http.StatusCreated, gin.H{"token": oneTimeAccessToken}) + c.JSON(http.StatusCreated, gin.H{"token": oneTimeAccessToken.Token}) } func exchangeOneTimeAccessTokenHandler(c *gin.Context) {