mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-22 16:45:08 +00:00
fix: one-time-access-token route should get user ID from URL only (#1358)
This commit is contained in:
committed by
GitHub
parent
e0fc4cc01b
commit
27ca713cd4
@@ -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