added refreshtoken to callback params
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user