mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-06 23:46:29 +02:00
17 lines
391 B
Go
17 lines
391 B
Go
|
package session
|
||
|
|
||
|
import (
|
||
|
"geeks-accelerator/oss/saas-starter-kit/example-project/internal/platform/auth"
|
||
|
)
|
||
|
|
||
|
// ctxKey represents the type of value for the context key.
|
||
|
type ctxKey int
|
||
|
|
||
|
// Key is used to store/retrieve a Claims value from a context.Context.
|
||
|
const Key ctxKey = 1
|
||
|
|
||
|
// Session represents a user with authentication.
|
||
|
type Session struct {
|
||
|
Claims auth.Claims `json:"claims"`
|
||
|
}
|