FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ZeroTechh/VerificationCodeService: A velocity service which creates and validates verification codes · GitHub

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VerificationCodeService

A velocity service which creates and validates verification codes.

Functions

Create

Creates a jwt as a verification token.

code, err := client.Create(ctx, &proto.UserData{UserID: "User id"})

Validate

Validates jwt as a verification token and returns userID.

userData, err := client.Validate(ctx, &proto.TokenData{Token: "Token"})

Workings

When a user registers, a verification code is generated for their userID and this will be sent using EmailService to user's email. Then user will use that verification code and enter it into velocity and the auth server will use this service to validate that verification code and mark that user as account status of Active. As of now this is only used to verify user's email but in futute can be used to do different things.

About

A velocity service which creates and validates verification codes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL