guard/internal/domain/const.go

19 lines
295 B
Go
Raw Normal View History

2024-08-06 05:59:24 +00:00
package domain
type GrantType string
const (
PasswordCredentials GrantType = "password"
ClientCredentials GrantType = "client_credentials"
Refreshing GrantType = "refresh_token"
)
const (
// DefaultRole 預設role
DefaultRole = "user"
)
const (
TokenTypeBearer = "Bearer"
)