-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix support for custom Cognito redirect path (#87)
In case all paths in a web domain are not handled by the `cognito-at-edge`-based edge function, it is necessary to specify the path to which Cognito will redirect while authenticating. This was already available with the `parseAuthPath` parameter, but it was used inconsistently in the `Authenticator.handle` function, resulting in `Unauthorized` errors from the Cognito API. It is now used consistently when providing a `redirect_uri` to the API. The readme was also updated to provide more guidance about using this option. --------- Co-authored-by: Jean de Kernier <[email protected]>
- Loading branch information
Showing
3 changed files
with
86 additions
and
13 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 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