Skip to content

A velocity service which creates and validates verification codes

License

Notifications You must be signed in to change notification settings

ZeroTechh/VerificationCodeService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages