feat: auth using sse

This commit is contained in:
ner committed 2024-10-17 21:47:55 +03:00
1 parent b72355f7b8
commit df0f7c943b
10 files changed
+1101 -292

No files matched your search

+3 -1
View File
@@ -9,7 +9,9 @@ import http from './Http';
import { Sort } from './parsers';
export const createRequestToken = async () => {
return http.get<RequestToken>('/authentication/token/new').then(({ request_token }) => request_token);
return http
.get<RequestToken>('/authentication/token/new', { force: true })
.then(({ request_token }) => request_token);
};
export const search = async ({