Skip to content
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

Is there any API documentation on the next() function? #197

Open
dylanfpaul opened this issue Mar 30, 2017 · 1 comment
Open

Is there any API documentation on the next() function? #197

dylanfpaul opened this issue Mar 30, 2017 · 1 comment

Comments

@dylanfpaul
Copy link

I want to see what is capable with the next() function besides bubbling errors to a Stormpath form. More specifically I want to not only send a new Error to the form from an express preRegistrationHandler (which I know how to do because it is in the documentation), but I also want to fire a function within scope of the form from the preRegistrationHandler.

Now I know that there is a next() call in my client-side onFormSubmit which then passes data to the preRegistrationHandler in express, but how can I access the scope of the form again from the preRegistrationHandler? I am unsure if I should be passing a function or some type of callback into the client-side next() prior to the preRegistrationHandler.

@robertjd
Copy link
Member

robertjd commented Apr 3, 2017

Hi @dylanfpaul , thanks for the question. I'm no sure what you mean by the scope of the form? If you could describe the user story you're trying to achieve, that may help. Also, please make sure to read the announcement that Stormpath is Joining Okta if you haven't already. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants