Skip to content

Instantly share code, notes, and snippets.

@Joshscorp
Created July 14, 2022 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joshscorp/335872cc6c1f38ed97ce52a44d268749 to your computer and use it in GitHub Desktop.
Save Joshscorp/335872cc6c1f38ed97ce52a44d268749 to your computer and use it in GitHub Desktop.
OnzAuth AppJS import
import './App.css';
import React, { useState, useEffect } from 'react';
import { Route, Routes, useNavigate } from 'react-router-dom';
import ProtectedPage from './components/ProtectedPage/ProtectedPage';
import PublicPage from './components/PublicPage/PublicPage';
import ProtectedRoute from './components/ProtectedRoute/ProtectedRoute';
import * as onz from 'onz-auth';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment