18 lines
267 B
Go
18 lines
267 B
Go
|
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,
|
||
|
})
|
||
|
}
|