package oauth2

const (
	DeviceCodeGrantType        = "urn:ietf:params:oauth:grant-type:device_code"
	RefreshTokenGrantType      = "refresh_token"
	AuthorizationCodeGrantType = "authorization_code"

	TokenTypeBearer = "Bearer"

	// Since we generate random string for userCode, deviceCode, accessToken and refreshToken,
	// it will encounter conflict error if the generated code is duplicated.
	// So we retry to regenerate the code if the error is duplicated key error.
	maxDBDuplicateRetryTimes = 10
)
