a simple redirect on web
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user