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

Request for Addition of Sign Up Method in Asgardeo React SDK #195

Open
devlllkk02 opened this issue Jun 12, 2023 · 1 comment
Open

Request for Addition of Sign Up Method in Asgardeo React SDK #195

devlllkk02 opened this issue Jun 12, 2023 · 1 comment
Labels
enhancement New feature or request Type/New Feature

Comments

@devlllkk02
Copy link

Is your feature request related to a problem? Please describe.

The Asgardeo React SDK does not offer a specific method to directly navigate the user to a Signup page. As a developer working on the Grama Check Application, the two-week intern project, I encountered this limitation. My intention was to create separate buttons for the Signup and Login functionalities as shown below.

Screenshot from 2023-06-12 15-33-25

However, the useAuthContext() provided by Asgardeo does not include a separate method for signing up.

Screenshot from 2023-06-12 15-23-44

I was expecting to create two separate buttons for the purposes of Signup and Login in our Grama Check Application. However, I was unable to do so since the useAuthContext() in Asgardeo does not provide a method for Sign Up.

To work around this limitation, I had to modify the UI by removing the "Sign Up" button and replacing it with a single button that serves both the purposes of signing up and logging in.

Screenshot from 2023-06-12 15-37-21

Describe the solution you would prefer

I would like to have a dedicated method or functionality within the Asgardeo React SDK that allows developers to navigate the user to the Signup Page directly.

In the existing implementation, the SDK offers a signIn method which redirects the user to the login page. On this page, there is an option available to create a new account. However, it would be more convenient for new users if they could directly navigate to the signup page instead of going through the login page first and then proceeding to the signup page.

This would enable the creation of separate buttons for Signup and Login, enhancing the user experience and providing a more intuitive flow for new users.

Additional context

The absence of a signUp method in useAuthContext() hampers the development process, as it limits the ability to provide a clear distinction between the Signup and Login functionalities. I believe that having separate buttons for these actions is a common practice in user authentication flows, and it would greatly benefit developers utilizing the Asgardeo React SDK.

@pavinduLakshan
Copy link
Contributor

pavinduLakshan commented Feb 19, 2024

If your requirement is to just provide a direct link to the signup page, https ://accounts.asgardeo.io/t/<your-org-name>/accountrecoveryendpoint/register.do will do the job, but that wouldn't provide the auto login and some other capabilities, due to the technical limitations we currently have. Therefore, we haven't exposed a signupmethod through SDK.

However, this is already on our roadmaps and currently being actively worked on. We will update this issue once the feature lands in.

@pavinduLakshan pavinduLakshan pinned this issue Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Type/New Feature
Projects
None yet
Development

No branches or pull requests

2 participants