Add account issuers
This commit is contained in:
@@ -154,13 +154,6 @@ func WithMetadata(md map[string]string) GenerateOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithScopes for the generated account
|
||||
func WithScopes(s ...string) GenerateOption {
|
||||
return func(o *GenerateOptions) {
|
||||
o.Scopes = s
|
||||
}
|
||||
}
|
||||
|
||||
// WithProvider for the generated account
|
||||
func WithProvider(p string) GenerateOption {
|
||||
return func(o *GenerateOptions) {
|
||||
@@ -168,6 +161,13 @@ func WithProvider(p string) GenerateOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithScopes for the generated account
|
||||
func WithScopes(s ...string) GenerateOption {
|
||||
return func(o *GenerateOptions) {
|
||||
o.Scopes = s
|
||||
}
|
||||
}
|
||||
|
||||
// NewGenerateOptions from a slice of options
|
||||
func NewGenerateOptions(opts ...GenerateOption) GenerateOptions {
|
||||
var options GenerateOptions
|
||||
@@ -225,15 +225,6 @@ func NewTokenOptions(opts ...TokenOption) TokenOptions {
|
||||
return options
|
||||
}
|
||||
|
||||
type VerifyOptions struct {
|
||||
Scope string
|
||||
}
|
||||
type VerifyOptions struct{}
|
||||
|
||||
type VerifyOption func(o *VerifyOptions)
|
||||
|
||||
// WithScope to require when verifying
|
||||
func WithScope(s string) VerifyOption {
|
||||
return func(o *VerifyOptions) {
|
||||
o.Scope = s
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user