- Add EmailTokenService for handling email verification and password reset tokens. - Create EmailService for sending verification and reset emails via SMTP. - Update AuthService to handle email verification status during login. - Modify user registration to redirect to a check email screen instead of issuing a token. - Implement resend verification email functionality. - Add deep link handling for email verification and password reset in the mobile app. - Update mobile app routes and components to support new email verification flow. - Enhance error handling for unverified emails during login attempts. - Update configuration to include SMTP settings for email service.
29 lines
502 B
YAML
29 lines
502 B
YAML
info:
|
|
name: Login
|
|
type: http
|
|
seq: 2
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{base_url}}/api/v1/auth/login"
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"email": "felipe@felipecncloud.com",
|
|
"password": "12345678"
|
|
}
|
|
|
|
script:
|
|
res: |
|
|
if (res.status === 200) {
|
|
bru.setEnvVar("access_token", res.getBody().access_token);
|
|
bru.setEnvVar("refresh_token", res.getBody().refresh_token);
|
|
}
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|