Implement Verify Email
Breaking change
The schema for registration now has a tokens object for when email verification is not needed.
type RegisterResponse {
tokens: AuthPayload
status: RegisterStatuses!
}
enum RegisterStatuses {
MUST_VERIFY_EMAIL
SUCCESS
}
The tokens are generated if the email verification is not needed, if it is needed the tokens are not generated and the status will be MUST_VERIFY_EMAIL
- Implemented email verify