Skip to content

Commit

Permalink
Logout other template option
Browse files Browse the repository at this point in the history
related to descope/etc#8242
  • Loading branch information
aviadl committed Nov 14, 2024
1 parent 1b642e8 commit b610332
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions descope/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,12 @@ func (to *Token) IsMFA() bool {
}

type LoginOptions struct {
Stepup bool `json:"stepup,omitempty"`
MFA bool `json:"mfa,omitempty"`
CustomClaims map[string]interface{} `json:"customClaims,omitempty"`
TemplateID string `json:"templateId,omitempty"` // for overriding the default messaging template
TemplateOptions map[string]string `json:"templateOptions,omitempty"` // for providing messaging template options (templates that are being sent via email / text message)
Stepup bool `json:"stepup,omitempty"`
MFA bool `json:"mfa,omitempty"`
RevokeOtherSessions bool `json:"revokeOtherSessions,omitempty"`
CustomClaims map[string]interface{} `json:"customClaims,omitempty"`
TemplateID string `json:"templateId,omitempty"` // for overriding the default messaging template
TemplateOptions map[string]string `json:"templateOptions,omitempty"` // for providing messaging template options (templates that are being sent via email / text message)
}

func (lo *LoginOptions) IsJWTRequired() bool {
Expand Down

0 comments on commit b610332

Please sign in to comment.