Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

feat: UI Auth/Login #41

Merged
merged 39 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a10c20b
chore: rename hooks; cleanup
markphelps Jan 16, 2023
df414ae
chore: remove auth provider
markphelps Jan 16, 2023
de1deb3
Merge branch 'main' into hooks-cleanup
markphelps Jan 16, 2023
f388093
chore: rename hooks back
markphelps Jan 17, 2023
0a78af8
Merge branch 'hooks-cleanup' of https://github.com/flipt-io/flipt-ui …
markphelps Jan 17, 2023
da6bb65
chore: forgot to stage renamed files
markphelps Jan 17, 2023
032b24d
feat(auth): wip
markphelps Jan 17, 2023
3341896
Merge branch 'main' into login
markphelps Jan 17, 2023
bbaf690
chore: add include creds everywhere; create delete helper func
markphelps Jan 17, 2023
2e7fdd4
chore: wip login
markphelps Jan 17, 2023
2081096
chore: wip
markphelps Jan 18, 2023
35d9b79
Merge branch 'main' into login
markphelps Jan 18, 2023
686e4b0
chore: wip
markphelps Jan 18, 2023
28ec7bd
chore: wip fix auth
markphelps Jan 18, 2023
b1850a5
chore: load self data
markphelps Jan 18, 2023
cd11338
feat: load user profile
markphelps Jan 18, 2023
172d858
chore: fix login redirect when auth not required
markphelps Jan 18, 2023
fbc0081
chore: rename session, fix exhaustive deps issue
markphelps Jan 18, 2023
e78804b
fix: api calls
markphelps Jan 18, 2023
04a7c50
chore: show name on hover
markphelps Jan 18, 2023
fb8ce1d
chore: get images working in dev mode; opacity on user ring
markphelps Jan 18, 2023
559baf4
feat: implement logout
markphelps Jan 19, 2023
e2fe2ef
feat: add known providers/icons
markphelps Jan 19, 2023
158d53b
Merge branch 'main' into login
markphelps Jan 19, 2023
588943f
chore: set session null on logout
markphelps Jan 20, 2023
c29777d
Merge branch 'login' of https://github.com/flipt-io/flipt-ui into login
markphelps Jan 20, 2023
494c7b7
chore: rm credentials include
markphelps Jan 20, 2023
c539acf
Merge branch 'main' into login
markphelps Jan 20, 2023
d117a98
fix: linter warning
markphelps Jan 20, 2023
b2b3ed5
fix: loading of providers
markphelps Jan 20, 2023
6a15387
fix: login page
markphelps Jan 20, 2023
e153987
fix: session infinite loop
markphelps Jan 20, 2023
baf347c
feat(api): add CSRF token support
GeorgeMac Jan 20, 2023
10d07bc
fix: show empty user if no imageURL
markphelps Jan 20, 2023
225b9eb
fix: set headers
markphelps Jan 20, 2023
4aa0794
fix: try to fix these loadeffect loops
markphelps Jan 20, 2023
277156c
chore: disable refresh interval in swr
markphelps Jan 20, 2023
9155a09
fix(csrf): drop type constraints on setCsrf
GeorgeMac Jan 20, 2023
137d98d
chore: make login dynamic import
markphelps Jan 20, 2023
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
Prev Previous commit
Next Next commit
chore: rename session, fix exhaustive deps issue
  • Loading branch information
markphelps committed Jan 18, 2023
commit fbc008100e0ca461d81387ca4b823b2bac283439
2 changes: 1 addition & 1 deletion src/app/console/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Console() {
.catch((err) => {
setError(err);
});
}, []);
}, [clearError, loadData, setError]);

const initialvalues: IConsole = {
flagKey: selectedFlag?.key || '',
Expand Down
2 changes: 1 addition & 1 deletion src/components/SessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function SessionProvider({
}: {
children: React.ReactNode;
}) {
const [session, setSession] = useStorage('session', null);
const [session, setSession] = useStorage('flipt', null);

const loadSession = useCallback(async () => {
let data = null;
Expand Down