Merge pull request 'Removed unnecessary print' (#7) from fix/cleanPrint into main

Reviewed-on: #7
This commit is contained in:
luiz 2025-02-15 09:44:04 +00:00
commit c1b41684c5
1 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import (
"context" "context"
"crypto/rand" "crypto/rand"
"encoding/base64" "encoding/base64"
"fmt"
"log" "log"
"net/http" "net/http"
"time" "time"
@ -122,7 +121,6 @@ func (h *Handlers) CallbackHandler(w http.ResponseWriter, r *http.Request) {
session.Values["access_token"] = oauth2Token.AccessToken session.Values["access_token"] = oauth2Token.AccessToken
session.Values["user_info"] = claims session.Values["user_info"] = claims
fmt.Println(claims)
session.Options.MaxAge = int(oauth2Token.Expiry.Sub(time.Now()).Seconds()) session.Options.MaxAge = int(oauth2Token.Expiry.Sub(time.Now()).Seconds())
err = session.Save(r, w) err = session.Save(r, w)
if err != nil { if err != nil {