yujincs / backend

0 stars 0 forks source link

Authentication Backend #1

Open izznat opened 1 year ago

izznat commented 1 year ago

Endpoints:

JWT payload required fields:

For customers and users:

{
    "id": <string>,
    "email": <string>,
    "role": "authenticated",
    "type": "customer" | "user"
}

For widget token:

{
    "id": <string>,
    "email": <string>,
    "role": "anon",
    "type": "widget"
}
madeariasya commented 1 year ago
madeariasya commented 1 year ago

-[x] GET /tokens (tokens untuk chat widget) (@madeariasya ) -[x] POST /tokens (tokens untuk chat widget) (@madeariasya )