Free Apple Sign In without a developer account with React and Eartho

The problem

The solution

Why use Eartho?

  • Ready high converting UI/UX
  • Login from Google, Twitter, Github, Facebook, Apple, Microsoft, VK, Snapchat, Yandex, Reddit, SMS, Metamask at once with not extra steps or extra effort.
  • You don’t need to read the documents of all companies and you don’t need to open accounts there.
  • Your users will be protected under our third layer, we prevent from companies to track after your users.
  • Set boundaries and rules to stop users you don’t want from connecting.
  • Advanced analytics and info about your app from all sources. ready for use. no extra steps
  • No-Code / Your own server. you decide. We support all, your own server, our server, firebase auth and many more.

1. Getting Started

2. SDK Integration

  1. Install the SDK and initialize Eartho One
npm install @eartho/one-client-react
yarn add @eartho/one-client-react
// src/index.js
import React from ‘react’;
import ReactDOM from ‘react-dom’;
import { EarthoOneProvider } from ‘@eartho/one-client-react’;
import App from ‘./App’;ReactDOM.render(
<App />

3. Start Using

// src/App.js
import React from ‘react’;
import { useEarthoOne } from ‘@eartho/one-client-react’;function App() {
const {
} = useEarthoOne();if (isLoading) {
return <div>Loading…</div>;
if (error) {
return <div>Oops… {error.message}</div>;
}if (isConnected) {
return (
Hello {user.displayName}{‘ ‘}
<button onClick={() => logout({ returnTo: window.location.origin })}>
Log out
} else {
return <button onClick={connectWithPopup}>Log in</button>;
}export default App;

That’s It



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store