authmodels

package
v0.0.0-...-c9a23b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginInput

type LoginInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LogoutInput

type LogoutInput struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type RefreshInput

type RefreshInput struct {
	RefreshToken string `json:"refreshToken"`
}

type ResetInitInput

type ResetInitInput struct {
	Email string `json:"email"`
}

type ResetVerifyInput

type ResetVerifyInput struct {
	Email       string `json:"email"`
	Otp         string `json:"otp"`
	NewPassword string `json:"newPassword"`
}

type SignupInput

type SignupInput struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Password  string `json:"password"`
}

type UserAuthCredential

type UserAuthCredential struct {
	UserId         string    `json:"userId" bson:"_id"`
	Email          string    `json:"email" bson:"email"`
	HashedPassword string    `json:"hashedPassword" bson:"hashedPassword"`
	CreatedAt      time.Time `json:"createdAt" bson:"createdAt"`
	ModifiedAt     time.Time `json:"modifiedAt" bson:"modifiedAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL