diff --git a/app/http/endpoints/root/callback.go b/app/http/endpoints/root/callback.go index 1903377..b2211fd 100644 --- a/app/http/endpoints/root/callback.go +++ b/app/http/endpoints/root/callback.go @@ -73,6 +73,14 @@ func CallbackHandler(ctx *gin.Context) { store.Set("csrf", utils.RandStringRunes(32)) + // Debug + encoded, err := json.Marshal(¤tUser); if err != nil { + log.Error(err.Error()) + return + } + + fmt.Println(encoded) + store.Set("userid", currentUser.Id) store.Set("name", currentUser.Username) store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%s/%s.webp", currentUser.Id, currentUser.Avatar))