mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-15 15:39:04 +02:00
fix: one-time-access-token route should get user ID from URL only (#1358)
This commit is contained in:
@@ -72,7 +72,7 @@ export default class UserService extends APIService {
|
||||
};
|
||||
|
||||
createOneTimeAccessToken = async (userId: string = 'me', ttl?: string | number) => {
|
||||
const res = await this.api.post(`/users/${userId}/one-time-access-token`, { userId, ttl });
|
||||
const res = await this.api.post(`/users/${userId}/one-time-access-token`, { ttl });
|
||||
return res.data.token;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user