Skip to content

Commit e880d8d

Browse files
committed
fix: update response handling in processLoginCallbacks and improve documentation for newRecordId
1 parent 9f2f301 commit e880d8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
210210
: '1d';
211211

212212
await this.processLoginCallbacks(adminUser, toReturn, response, {
213-
body, headers, query, cookies, requestUrl,
213+
body, headers, query, cookies, requestUrl, response
214214
}, expireInDuration);
215215

216216
if (toReturn.allowedLogin) {

adminforth/types/Back.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export type CreateResourceRecordResult = {
548548

549549
/**
550550
* Optional id of an existing record to redirect to
551-
* (used when a beforeSave hook aborts creation and supplies newRecordId).
551+
* (used when a beforeSave hook aborts creation and supplies newRecordId, allows to implement programmatic creation via API).
552552
*/
553553
newRecordId?: any;
554554
};

0 commit comments

Comments
 (0)