Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
p0t4t0sandwich committed Apr 24, 2024
1 parent 516e281 commit bd697b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/auth/linking/twitch.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ func TwitchOAuth(as auth.AccountStore, ss sess.SessionStore, las LinkAccountStor

// Check if platform account is linked to an account
la, err := las.GetLinkedAccountByPlatformID(PlatformTwitch, user.ID)
log.Println(la)
log.Println(err)
if err != nil {
// If the account IDs don't match, default to OAuth as the source of truth
if a == nil || a.UserID != la.UserID {
Expand Down

0 comments on commit bd697b6

Please sign in to comment.