Skip to content

Commit

Permalink
add LastLoginAt to device type (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrmz authored Jul 22, 2022
1 parent 6281873 commit 46b2159
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ type User struct {
}

type Device struct {
ID string `json:"id"`
CredID string `json:"cred_id"`
Name string `json:"friendly_name"`
UsageCount uint `json:"usage_count"`
UpdatedAt time.Time `json:"updated_at"`
CreatedAt time.Time `json:"created_at"`
ID string `json:"id"`
CredID string `json:"cred_id"`
Name string `json:"friendly_name"`
UsageCount uint `json:"usage_count"`
UpdatedAt time.Time `json:"updated_at"`
CreatedAt time.Time `json:"created_at"`
LastLoginAt time.Time `json:"last_login_at"`
}

// GetUser gets a user using their userID
Expand Down

0 comments on commit 46b2159

Please sign in to comment.