-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf8a12f
commit 048a3e8
Showing
11 changed files
with
69 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# @faustjs/core | ||
|
||
## 0.12.0 | ||
|
||
### Minor Changes | ||
|
||
- 4ded997: Implement `logoutHandler` middleware | ||
|
||
### Patch Changes | ||
|
||
- c4b205a: Implemented `changesets` 🦋 | ||
- 5c7f662: Added the appropriate `Content-Type` response header to the `authorizeHandler` middleware |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# @faustjs/next | ||
|
||
## 0.12.0 | ||
|
||
### Minor Changes | ||
|
||
- 5c7f662: Introduced an argument to the `useAuth` hook, `UseAuthOptions`, to provide users the ability to disable automatic redirect from the `useAuth` hook upon an unauthenticated user. | ||
|
||
```tsx | ||
import { client } from 'client'; | ||
|
||
export default function Page() { | ||
const { isLoading, isAuthenticated, authResult } = client.auth.useAuth({ | ||
shouldRedirect: false, | ||
}); | ||
|
||
if (isLoading) { | ||
return <p>Loading...</p>; | ||
} | ||
|
||
if (!isAuthenticated) { | ||
return ( | ||
<p>You need to be authenticated to see this content. Please login.</p> | ||
); | ||
} | ||
|
||
return <p>Authenticated content</p>; | ||
} | ||
``` | ||
|
||
### Patch Changes | ||
|
||
- c4b205a: Implemented `changesets` 🦋 | ||
- Updated dependencies [4ded997] | ||
- Updated dependencies [c4b205a] | ||
- Updated dependencies [5c7f662] | ||
- @faustjs/core@0.12.0 | ||
- @faustjs/react@0.12.0 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @faustjs/react | ||
|
||
## 0.12.0 | ||
|
||
### Patch Changes | ||
|
||
- c4b205a: Implemented `changesets` 🦋 | ||
- Updated dependencies [4ded997] | ||
- Updated dependencies [c4b205a] | ||
- Updated dependencies [5c7f662] | ||
- @faustjs/core@0.12.0 |
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