Prolifode / deno_rest

A Boilerplate for deno RESTful apis
MIT License
147 stars 27 forks source link

Add feature for users to sign up #14

Closed vicky-gonsalves closed 2 years ago

vicky-gonsalves commented 3 years ago

New Users should be able to sign up with Email and Password

Requirements

Hello [USER_NAME], Please click on following link or Copy/Paste in your web browser to verify your email address. http://domain.com/user/verify-email?token=[AES_ENCRYPTED_KEY]

example of verification document:

{
    "blacklisted": false,  // will be used later if we need to blacklist a key
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZTZiNGZlOTc2NmE3YTFmMjgxZWQzYjIiLCJpYXQiOjE1ODQwOTExMjcsImV4cCI6MTU4NjY4MzEyN30.YVo52NeI-Aju02ENTUOg6ch5En_94i2G8rA7x1WjNDY",  // AES_ENCRYPTED_KEY
    "email": "user@email.com",  // User's Email
    "createdAt": "2020-03-13T09:18:47.247Z",
    "updatedAt":"2020-03-13T09:18:47.247Z",
    "__v": 0
}

Email Verification API

At this stage we should have a new user successfully signed up.