Compare commits
No commits in common. "c1b41684c50a753edcdb6b5c66124fca30ef5efc" and "2343eb2000c010098f93f3ef04274ffb96bf6e2a" have entirely different histories.
c1b41684c5
...
2343eb2000
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
@ -121,6 +122,7 @@ func (h *Handlers) CallbackHandler(w http.ResponseWriter, r *http.Request) {
|
|||
session.Values["access_token"] = oauth2Token.AccessToken
|
||||
session.Values["user_info"] = claims
|
||||
|
||||
fmt.Println(claims)
|
||||
session.Options.MaxAge = int(oauth2Token.Expiry.Sub(time.Now()).Seconds())
|
||||
err = session.Save(r, w)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue