logger.Error("Error feching oauth information for user","error",err)
return
}
provider:=authInfoQuery.Result.AuthModule
connect,ok:=social.SocialMap[strings.TrimPrefix(provider,"oauth_")]// The socialMap keys don't have "oauth_" prefix, but everywhere else in the system does
if!ok{
logger.Error("Failed to find oauth provider with given name","provider",provider)
return
}
// TokenSource handles refreshing the token if it has expired