ti-pote/docs/bruno/Auth/Register.bru
2026-03-27 11:03:09 +01:00

28 lines
425 B
Plaintext

meta {
name: Register
type: http
seq: 1
}
post {
url: {{baseUrl}}/auth/register
body: json
auth: none
}
body:json {
{
"email": "arthur@tipote.dev",
"password": "password123",
"displayName": "Arthur",
"homeName": "Maison"
}
}
script:post-response {
if (res.status === 201) {
bru.setVar("accessToken", res.body.accessToken);
bru.setVar("refreshToken", res.body.refreshToken);
}
}