-
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
Improve lambda documentation #613
Comments
See also #571 |
Can we clarify the items in the description?
You cannot configure more than one lambda for any particular use. What does 'added' mean? If this applies to assignment, each lambda does have an "assigning lambda" section that describes what to do with the lambda after you create one. ( https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate ) Perhaps this section needs to be enhanced.
The console options are documented here https://fusionauth.io/docs/v1/tech/lambdas/#console it does indicate this is provided by FusionAuth. We could make this clearer that this is not the same We could also explore making ours confirm to the entire Console API spec. https://console.spec.whatwg.org/
Not sure if I understand this one. If I understand correct, writing a function inside of the lambda, but outside if the documented lambda body it doesn't work?
I believe this to be correct. We could clarify that additionally defined functions in the lambda body are not bound and cannot be called from within our lambda. This may change once we ditch Nashorn. |
There is a plus button to add lambdas, it should grey out if one is already there
It was not immediately clear from the intro doc that there is more or that this console is not the same as the "normal".
I haven't tried the object notation above, I just tried to declare another function outside of populate and that failed. I didn't see any other options in the docs, maybe I should maybe looked harder... |
Thanks for the clarification @gordody . |
Closing because I added these in in PR #1127. |
Improve lambda documentation
Description
Some more nuance about the lambda functionality would benefit from documentation:
console.log
(or the other calls toconsole
are not the standardconsole.log('something', 'something else', some more strings');
but rather they can only take one argument:console.info('something' + 'something else');
For example:
The text was updated successfully, but these errors were encountered: