-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: @0.1.7 - cleaned up exports and namespace
- Loading branch information
1 parent
f623a1f
commit ac836e6
Showing
5 changed files
with
17 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export { default as LoginComponent } from './components/login' | ||
export { useCurrentUser, type AuthService, AuthServiceProvider } from './service/AuthContext' | ||
export type { default as APIResponse} from './lib/firebase/api-response' | ||
|
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,5 @@ | ||
type APIResponse<T = object> = { success: true; data: T } | { success: false; error: string }; | ||
|
||
export { | ||
type APIResponse as default | ||
} |
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
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
export { getCurrentUser as getCurrentUserServerSide} from './lib/firebase/firebase-admin' | ||
export { | ||
getCurrentUser as getCurrentUserServerSide, | ||
createSessionCookie, | ||
revokeAllSessions, | ||
isUserAuthenticated | ||
} from './lib/firebase/firebase-admin' | ||
|
||
export type { default as APIResponse} from './lib/firebase/api-response' |