Skip to content

Commit

Permalink
refactor: restructure login package
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 25, 2020
1 parent fb9d62f commit c99e2a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selfservice/flow/login/flow.go
Expand Up @@ -32,6 +32,9 @@ type Flow struct {
// required: true
ID uuid.UUID `json:"id" faker:"-" db:"id"`

// Type represents the flow's type which can be either "api" or "browser", depending on the flow interaction.
Type flow.Type `json:"type" db:"type" faker:"flow_type"`

// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in,
// a new flow has to be initiated.
//
Expand Down Expand Up @@ -82,9 +85,6 @@ type Flow struct {

// Forced stores whether this login flow should enforce re-authentication.
Forced bool `json:"forced" db:"forced"`

// Type represents the flow's type which can be either "api" or "browser", depending on the flow interaction.
Type flow.Type `json:"type" db:"type" faker:"flow_type"`
}

func NewFlow(exp time.Duration, csrf string, r *http.Request, flowType flow.Type) *Flow {
Expand Down
File renamed without changes.

0 comments on commit c99e2a2

Please sign in to comment.