Skip to content

Instantly share code, notes, and snippets.

@Franpastoragusti
Last active January 21, 2019 16:05
Show Gist options
  • Save Franpastoragusti/544330f518fa045e6cee7ee452edcc9f to your computer and use it in GitHub Desktop.
Save Franpastoragusti/544330f518fa045e6cee7ee452edcc9f to your computer and use it in GitHub Desktop.
/* /src/components/auth/callback.jsx */
import React from "react";
import { AuthConsumer } from "../../providers/authProvider";
export const Callback = () => (
<AuthConsumer>
{({ signinRedirectCallback }) => {
signinRedirectCallback();
return <span>loading</span>;
}}
</AuthConsumer>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment