Skip to content

Commit

Permalink
Merge pull request #34 from walnuts1018/addemoji
Browse files Browse the repository at this point in the history
動くようにした
  • Loading branch information
wolfmagnate authored Nov 5, 2023
2 parents edb3a05 + 32a45ab commit ed1141d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions back/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func authMiddleware() gin.HandlerFunc {
c.Set("loginUserID", claims.Sub)

// ユーザーの存在確認と新規作成のロジックは省略...
if _, err := uc.GetUser(claims.Sub); err != nil {
uc.NewUser(domain.User{ID: claims.Sub})
}

log.Printf("ユーザー認証成功: ユーザーID %s", claims.Sub)
} else {
Expand Down

0 comments on commit ed1141d

Please sign in to comment.