/api/collections/{collection.name}/auth-refresh
Returns a new auth response (token and record data) for an already authenticated record.
This method is usually called by users on page/screen reload to ensure that the previously stored data
in pb.authStore
is still valid and up-to-date.
/api/collections/{collection.name}/auth-refresh
Requires Authorization:TOKEN
header
Param | Type | Description |
---|---|---|
expand | String |
Auto expand record relations. Ex.:
The expanded relations will be appended to the record under the expand property (eg. {`"expand": {"relField1": {...}, ...}`} ).
Only the relations to which the request user has permissions to view will be expanded. |