import { usePublicApi } from '..'; import type { RedirectRequest, OauthType, } from '../types'; export function oauthRedirect(type: OauthType, payload: RedirectRequest) { return usePublicApi({ endpoint: `/third-party/${type}/oauth/redirect`, method: 'GET', params: payload, }); }