a simple redirect on web

This commit is contained in:
Hailey
2024-04-02 16:05:51 -07:00
parent 0c6eebf40b
commit fd8e8866a1
+13
View File
@@ -0,0 +1,13 @@
import React from 'react'
export function useLogin(serviceUrl: string | undefined) {
const openAuthSession = React.useCallback(async () => {
if (!serviceUrl) return
window.location.href = serviceUrl
}, [serviceUrl])
return {
openAuthSession,
}
}