-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Add custom intentsApi prop to TriggerManager #1663
Conversation
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.
see comment
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.
see comment
672e4a3
to
eb232a0
Compare
To allow custom call to : - fetch session code - show inApp browser - close inApp browser For cases outside of flagship app
This attribute will allow to customize the name of the param with session code. For example, with oidc, it will be id_token
1305cf4
to
9f99f44
Compare
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.
I would have use a context instead of passing props everywhere. Something like:
const { fetchSessionCode, showInAppBrowser, closeInAppBrowser, tokenParamName } = useIntentsApi()
but we're already late on this subject so... let's approve.
To get custom intentsApi prop for TriggerManager [PR](cozy/cozy-libs#1663)
To allow custom call to :
For cases outside of flagship app