Request reauth
This commit is contained in:
parent
5507c4330e
commit
a22313066a
@ -72,7 +72,12 @@ func ReloadGuildsHandler(ctx *gin.Context) {
|
||||
}
|
||||
|
||||
if err := utils.LoadGuilds(store.AccessToken, userId); err != nil {
|
||||
ctx.JSON(500, utils.ErrorJson(err))
|
||||
// TODO: Log to sentry
|
||||
// Tell client to reauth, needs a 200 or client will display error
|
||||
ctx.JSON(200, gin.H{
|
||||
"success": false,
|
||||
"reauthenticate_required": true,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user