This commit is contained in:
jay brown
2025-08-01 13:35:29 -07:00
parent 105339aa40
commit 582e5b77c0
2 changed files with 86 additions and 0 deletions
+3
View File
@@ -183,6 +183,9 @@ func setTokenCookies(c echo.Context, tokens *TokenResponse, accessTokenExpiresAt
// Set refresh token cookie (longer expiration - 30 days)
// Use UTC time and ensure proper expiration
// This must match the cognito side. So if you want to use a shorter
// (than the default 30 days) for this you should change it on the cognito client
// side as well as here.
refreshTokenExpires := time.Now().UTC().Add(30 * 24 * time.Hour)
refreshTokenCookie := &http.Cookie{
Name: "refresh_token",