feat: drop user initiated one time access token login method

This commit is contained in:
Elias Schneider
2026-07-29 23:49:08 +02:00
parent 2ef7c93fee
commit 0c27f733b9
11 changed files with 35 additions and 198 deletions
+1 -1
View File
@@ -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;
};