feat: auth

This commit is contained in:
ner committed 2024-10-16 22:44:14 +03:00
1 parent 8cb7fed6ef
commit fdec33ae64
6 files changed
+35 -9

No files matched your search

+4
View File
@@ -8,6 +8,10 @@ import yts from './parsers/yts';
import http from './Http';
import { Sort } from './parsers';
export const createRequestToken = async () => {
return http.get<RequestToken>('/authentication/token/new').then(({ request_token }) => request_token);
};
export const search = async ({
query,
page,