feat: auth
This commit is contained in:
1 parent
8cb7fed6ef
commit
fdec33ae64
6 files changed
+35
-9
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user