forked from crowetic/commerce
* Add ordercloud provider * Fix provider errors * Make submit checkout optional * Make submit checkout optional * Remove nullables when creating endpoint type * Update readme * Log checkout error * Log error * Save token to cookie * Update fetch rest * Use token at checkout Co-authored-by: Luis Alvarez <luis@vercel.com>
17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import { MutationHook } from '@commerce/utils/types'
|
|
import useLogin, { UseLogin } from '@commerce/auth/use-login'
|
|
|
|
export default useLogin as UseLogin<typeof handler>
|
|
|
|
export const handler: MutationHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher() {
|
|
return null
|
|
},
|
|
useHook: () => () => {
|
|
return async function () {}
|
|
},
|
|
}
|