-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(AuthContext): Refactor to TypeScript and change dir (#404)
* Rebase (squashed Enzo's commits) * Change import to lib alias * Improve login/logout logic * Fix lint error * Remove withoutAuth * Add types to AuthContext * Fix type errors --------- Co-authored-by: tiago-bacelar <pereira.migueltiago@gmail.com>
- Loading branch information
1 parent
945c6a8
commit 12fc798
Showing
28 changed files
with
219 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type { | ||
IBadge, | ||
IPrize, | ||
IAbstractUser, | ||
IAttendee, | ||
IStaff, | ||
ISponsor, | ||
IUser, | ||
} from "./AuthContext"; | ||
|
||
export { AuthProvider } from "./AuthContext"; | ||
export { useAuth } from "./AuthContext"; | ||
export { withAuth } from "./withAuth"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.