You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func Init() {
// Load environment variables
clientID := os.Getenv("GOOGLE_ID")
clientSecret := os.Getenv("GOOGLE_SECRET")
clientCallbackURL := os.Getenv("GOOGLE_CALLBACK_URL")
sessionSecret := os.Getenv("SESSION_SECRET")
// Check that all necessary variables are set
if clientID == "" || clientSecret == "" || clientCallbackURL == "" || sessionSecret == "" {
log.Fatal("Environment variables (GOOGLE_ID, GOOGLE_SECRET, GOOGLE_CALLBACK_URL, SESSION_SECRET) are required")
}
store = sessions.NewCookieStore([]byte(sessionSecret))
// Set up Google provider for Goth
goth.UseProviders(google.New(clientID, clientSecret, clientCallbackURL))
// Configure the session store with the session secret
store := sessions.NewCookieStore([]byte(sessionSecret))
gothic.Store = store
}
The problem is that the login phase works perfectly on my computer (even with different IP, clean cache and different browser and even different laptop), but on my android device, I get the error could not find a matching session for this request that occurs on gothic.CompleteUserAuth. I'm sure that the URI are well configured in Google redirect URI and again it works well on my laptop.
How can there be a difference between a computer and a android devices ?
The text was updated successfully, but these errors were encountered:
Hello,
I made a website with go for the backend with a simple login system with google :
And the configuration is the following :
The problem is that the login phase works perfectly on my computer (even with different IP, clean cache and different browser and even different laptop), but on my android device, I get the error
could not find a matching session for this request
that occurs ongothic.CompleteUserAuth
. I'm sure that the URI are well configured in Google redirect URI and again it works well on my laptop.How can there be a difference between a computer and a android devices ?
The text was updated successfully, but these errors were encountered: