mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-29 20:19:04 +01:00
feat: drop user initiated one time access token login method
This commit is contained in:
@@ -81,7 +81,7 @@ export default class UserService extends APIService {
|
||||
cachedProfilePicture.bustCache(userId);
|
||||
};
|
||||
|
||||
createOneTimeAccessToken = async (userId: string = 'me', ttl?: string | number) => {
|
||||
createOneTimeAccessToken = async (userId: string, ttl?: string | number) => {
|
||||
const res = await this.api.post(`/users/${userId}/one-time-access-token`, { ttl });
|
||||
return res.data.token;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user