added refreshtoken to callback params

This commit is contained in:
2026-03-12 11:18:58 +08:00
parent fa1d1623c3
commit 71adf3d7d3
+1 -1
View File
@@ -326,7 +326,7 @@ func GoogleCallback(w http.ResponseWriter, r *http.Request) {
helper.LogInfo("Copy this access token: " + accessToken)
RedirectURL := fmt.Sprintf("%s/callback?token=%s&user_id=%s", redirectURI, accessToken, userID)
RedirectURL := fmt.Sprintf("%s/callback?token=%s&refresh_token=%s&user_id=%s", redirectURI, accessToken, refreshToken, userID)
http.Redirect(w, r, RedirectURL, http.StatusSeeOther)
}