Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e762d82
save
RichardJECooke Aug 18, 2025
2f41b51
update part 1 with part 2 syntax
RichardJECooke Aug 18, 2025
d8854e3
improves
RichardJECooke Aug 18, 2025
bcefe49
save
RichardJECooke Aug 18, 2025
432b16e
save
RichardJECooke Aug 19, 2025
b05c62d
save
RichardJECooke Aug 19, 2025
f87fa7d
update readme and add fa for repo-only users
RichardJECooke Aug 19, 2025
4a1e308
kickstart styling
sixhobbits Aug 19, 2025
ce6eb5c
Remove registration button from app
RichardJECooke Aug 19, 2025
af4dec4
Fix routing without needing a config file, by swapping from vite to p…
RichardJECooke Aug 19, 2025
4c91cad
update readme for parcel
RichardJECooke Aug 19, 2025
57d8a02
attempt to refresh token manually
RichardJECooke Aug 26, 2025
424ac4c
add server call to react app
RichardJECooke Aug 26, 2025
4e93c7e
save
RichardJECooke Sep 1, 2025
70195d2
save tags
RichardJECooke Sep 1, 2025
977c4e8
save
RichardJECooke Sep 1, 2025
e942767
save
RichardJECooke Sep 1, 2025
14c749f
save
RichardJECooke Sep 1, 2025
8443978
tags
RichardJECooke Sep 1, 2025
5fda6bf
tags
RichardJECooke Sep 1, 2025
3e2b473
tags
RichardJECooke Sep 1, 2025
a6b2ac9
tags
RichardJECooke Sep 1, 2025
4684af6
tags
RichardJECooke Sep 1, 2025
da9d9d9
tags
RichardJECooke Sep 1, 2025
9ff6683
tags
RichardJECooke Sep 1, 2025
83259ff
refresh button
RichardJECooke Sep 2, 2025
7c179e0
new user info stuff
RichardJECooke Sep 2, 2025
be2d378
layout
RichardJECooke Sep 2, 2025
59a8748
save
RichardJECooke Sep 2, 2025
41ac4f8
save
RichardJECooke Sep 2, 2025
3cca4f7
save
RichardJECooke Sep 2, 2025
5f1f001
save
RichardJECooke Sep 5, 2025
2027e98
save
RichardJECooke Sep 5, 2025
f984e19
save
RichardJECooke Sep 5, 2025
fba2d9d
save
RichardJECooke Sep 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Empty file added 01_start/home.tsx
Empty file.
Empty file added 01_start/index.css
Empty file.
Empty file added 01_start/index.html
Empty file.
Empty file added 01_start/index.tsx
Empty file.
4,614 changes: 4,614 additions & 0 deletions 01_start/package-lock.json

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions 01_start/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"dependencies": {
"@fusionauth/react-sdk": "~2.5.1",
"react": "~19.1.1",
"react-dom": "~19.1.1",
"react-router-dom": "^6.7.0"
},
"devDependencies": {
"@eslint/js": "~9.33.0",
"@types/react": "~19.1.10",
"eslint": "~9.33.0",
"parcel": "~2.15.4",
"typescript": "~5.9.2",
"typescript-eslint": "~8.40.0"
}
}
21 changes: 21 additions & 0 deletions 02_noAuthentication/account.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React, { useEffect, useState } from 'react';
import { createRoot } from 'react-dom/client';
import { useNavigate } from "react-router-dom";

export default function Account() {
const navigate = useNavigate();
return (
<div>
<div className="titlebar">
<button className='button' onClick={() => navigate("/")}>Log out</button>
</div>
<div className='centerContainer'>
<br />
<div className="userInfoGrid">
<div>Name: </div><div></div>
<div>Birthdate: </div><div></div>
</div>
</div>
</div>
);
}
18 changes: 18 additions & 0 deletions 02_noAuthentication/home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React, { useEffect } from 'react';
import { createRoot } from 'react-dom/client';
import { useState } from 'react';
import { useNavigate } from "react-router-dom";

export default function Home() {
const navigate = useNavigate();
return (
<div>
<div className="titlebar">
<button className='button' onClick={() => navigate("/account")}>Log in</button>
</div>
<div className='centerContainer'>
<div>Log in to request your information</div>
</div>
</div>
);
};
50 changes: 50 additions & 0 deletions 02_noAuthentication/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
* {
color: black;
font-size: 14px;
margin: 0;
padding: 0;
}

.white { color: white}

.centerContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.titlebar {
background-color: #1e293b;
margin: 0 0 36px 0;
min-height: 100px;
color: #f8fafc;
display: flex;
justify-content: flex-end;
align-items: center;
}

.button {
font-family: inherit;
border-radius: 4px;
padding: 10px 16px;
margin: 16px;
height: 40px;
background-color: #f58320;
border: none;
color: white;
}
.button:hover {
background-color: #ea580c;
color: white;
}
.button:disabled {
background-color: #1e293b;
color: #64748b;
}

.userInfoGrid {
display: grid;
grid-template-columns: repeat(2, auto);
gap: 10px;
}
14 changes: 14 additions & 0 deletions 02_noAuthentication/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/index.css">
<title>FusionAuth Quickstart React App</title>
</head>
<body>
<div id="root"></div>
<!-- 1 -->
<script type="module" src="/index.tsx"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions 02_noAuthentication/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom';
import Home from './home';
import Account from './account';

function App() {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="/account" element={<Account />} />
<Route path="*" element={<Navigate to="/" />} />
</Routes>
);
}

ReactDOM.createRoot(document.getElementById('root')!).render(
<StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</StrictMode>
);
Loading