mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-25 14:33:03 +00:00
23 lines
457 B
JavaScript
23 lines
457 B
JavaScript
import React, { useEffect } from 'react'
|
|
import { signoutRedirectCallback } from '../services/userService'
|
|
import { useHistory } from 'react-router-dom'
|
|
|
|
function SignoutOidc() {
|
|
const history = useHistory()
|
|
useEffect(() => {
|
|
async function signoutAsync() {
|
|
await signoutRedirectCallback()
|
|
history.push('/')
|
|
}
|
|
signoutAsync()
|
|
}, [history])
|
|
|
|
return (
|
|
<div>
|
|
Redirecting...
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default SignoutOidc
|