@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
21 lines (18 loc) • 492 B
text/typescript
import { Systems } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from '../utils';
const getGlobusAuthUrl = (
params: Systems.GetGlobusAuthUrlRequest,
basePath: string,
jwt: string
) => {
const api: Systems.CredentialsApi = apiGenerator<Systems.CredentialsApi>(
Systems,
Systems.CredentialsApi,
basePath,
jwt
);
return errorDecoder<Systems.RespGlobusAuthUrl>(() =>
api.getGlobusAuthUrl(params)
);
};
export default getGlobusAuthUrl;