19 lines
295 B
Go
19 lines
295 B
Go
|
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"
|
||
|
)
|