-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to @ory/client 1.0.1 #225
Conversation
@vinckr 👀 |
Could we update this to bump to v1.1.0 right away? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review. A few things need to be updated. And I think you can update to v1.1, AFAIK there were no changes to the frontend.
return { | ||
apiBaseUrl: apiBaseUrl, | ||
kratosBrowserUrl: apiBaseUrl, | ||
sdk, | ||
frontend: new FrontendApi(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frontend: new FrontendApi(), | |
...sdk |
That way you have frontend
(and the other APIs) available, but they're setup with the correct configuration.
import { Application, NextFunction, Request, Response } from "express" | ||
|
||
export interface RouteOptions { | ||
sdk: V0alpha2ApiInterface | ||
frontend: FrontendApi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frontend: FrontendApi | |
frontend: FrontendApi | |
identity: IdentityApi | |
oauth2: OAuth2Api |
await sdk | ||
.createSelfServiceLogoutFlowUrlForBrowsers(req.header("cookie")) | ||
await frontend | ||
.createBrowserLogoutFlow(req.header("cookie")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of passing these parameters as named parameters, they're now passed in a single params
object. Could you update the usage of these methods as well? It won't compile otherwise.
@jonas-jonas Please have a look at #228 |
* linting: refactoring as in #225 * chore: cleanup * chore: bump ory/integrations * style: format * chore: cleanup * fix: login and registration hydra integration Co-authored-by: Jonas Badstübner <[email protected]>
Related Issue or Design Document
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact [email protected]) from the maintainers to push the changes.
Further comments