Skip to content

Commit

Permalink
Fix oauth callback hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar committed Feb 9, 2023
1 parent a8e3e42 commit ea30263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/components/login/OauthCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function OAuthError({ error: { error, error_description: description } }:any) {
export function OAuthCallback() {
const location = useLocation()
const { code, ...oauthError } = qs.parse(location.search)
const prevCode = useRef(code)
const prevCode = useRef<any>()
const [mutation, { error, loading }] = useMutation(CALLBACK, {
variables: { code, redirect: localized('/oauth/callback') },
onCompleted: result => {
Expand Down

0 comments on commit ea30263

Please sign in to comment.