tijl.dev-core/internal/oidc/callback.go

18 lines
267 B
Go
Raw Permalink Normal View History

2024-08-21 15:43:24 +02:00
package oidc
import (
"time"
"github.com/gofiber/fiber/v2"
)
func setCallbackCookie(c *fiber.Ctx, name, value string) {
c.Cookie(&fiber.Cookie{
Name: name,
Value: value,
MaxAge: int(time.Hour.Seconds()),
Secure: true,
HTTPOnly: true,
})
}