pl-fe: fix signup on Pleroma?

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-22 17:42:37 +02:00
parent 43126a2d04
commit 7d4e33e7f4
4 changed files with 14 additions and 6 deletions

View File

@@ -1297,6 +1297,10 @@ class PlApiClient {
body: { language: params.locale, birthday: params.date_of_birth, ...params },
});
if ('identifier' in response.json) return v.parse(v.object({
message: v.string(),
identifier: v.string(),
}), response.json);
return v.parse(tokenSchema, response.json);
},

View File

@@ -1,6 +1,6 @@
{
"name": "pl-api",
"version": "1.0.0-rc.81",
"version": "1.0.0-rc.82",
"type": "module",
"homepage": "https://codeberg.org/mkljczk/pl-fe/src/branch/develop/packages/pl-api",
"repository": {