Auth
Authentication related endpoints.
Last updated
Authentication related endpoints.
Last updated
POST /api/auth/login HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"email": "[email protected]",
"password": "text"
}{
"message": "Login successful",
"user": {
"uid": "text",
"email": "[email protected]",
"role": "text",
"emailVerified": true,
"walletAddress": "text"
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}POST /api/auth/signup HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"email": "[email protected]",
"password": "text",
"role": "contributor"
}{
"message": "Login successful",
"user": {
"uid": "text",
"email": "[email protected]",
"role": "text",
"emailVerified": true,
"walletAddress": "text"
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}POST /api/auth/forgot-password HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"email": "[email protected]"
}POST /api/auth/reset-password HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"email": "[email protected]",
"token": "text",
"newPassword": "text"
}POST /api/auth/verify-email HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"email": "[email protected]"
}POST /api/auth/verify-token HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"email": "[email protected]",
"token": "text"
}