File size: 293 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package authtoken

import (
	"encoding/base64"
	"time"

	"github.com/google/uuid"
)

var b64Encoding = base64.URLEncoding.WithPadding(base64.NoPadding)

// Token represents an authentication token.
type Token struct {
	Version   int
	Type      Type
	ID        uuid.UUID
	CreatedAt time.Time
}