Authentication register scriptedRef

Closed
G General May 14, 2022
Login to reply
Coded Themes Support Agent
1 year ago

Good day Sir.

We are always happy to get feedback from our valued customers so that we can continue to improve our service.

If you could spare two minutes of your time to write a review, we would be really grateful and very happy to read it.

To leave us a review simply click on this link https://mui.com/store/items/berry-react-material-admin/

You can log in and put some reviews on the review tab.


Thank you for trusting us with your purchase and, hopefully, taking the time out of your day for writing a review.

If you have any questions, please contact us at any time through a new or current ticket.


Best,

Rakesh

Coded Themes Support Agent
1 year ago

Glat to hear that. Hope I am able to resolve your query.


Reach out again if needed.


Regards,

Rakesh

kevin turado
1 year ago

Hi,


I have solved my issues. Thank you very much for your helpful response.


Thank you,

Kevin

Coded Themes Support Agent
1 year ago

ok. I hope you already referred this to play with authentication.

https://codedthemes.gitbook.io/berry/authentication


Also, if you are using your own context, you need to dispatch the action of accountReducer (src\store\accountReducer.ts).

Once action will be dispatched, useEffect will catch and navigate to the respective path from Guards.


Hope it helps.


Regards,

Rakesh

kevin turado
1 year ago

Yes, I know this. But the question is still not answered.


The question is why my registration page is not refreshing after a successful response from the back-end and after the isLoggIned: true state has changed.

Coded Themes Support Agent
1 year ago
kevin turado
1 year ago

I have no errors, What do you mean live?

In the demo version after you successfully register you will be redirected to the dashboard and that is what I am expecting too. Btw, I  am using Custom Context using the JWT from my back-end server

Coded Themes Support Agent
1 year ago

Well, if you check to live, it will redirect login. Do you have any errors in the console?


Regards,

Rakesh

kevin turado
1 year ago

After I submitted the registration form and had a successful response from the server I've changed the state isLoggedIn: true 

But the registration did not refresh, It just froze into that page.

Coded Themes Support Agent
1 year ago

Refresh?

May I know what is your use case?


Regards,

Rakesh

kevin turado
1 year ago

Hi,


Thanks for the reply, May I also ask how I refresh the registration page after successfully submitting the registration form?

Coded Themes Support Agent
1 year ago

Hi,


that is a wrapper of the useRef hook to access across application.

https://reactjs.org/docs/hooks-reference.html#useref


Regards,

Rakesh

kevin turado
1 year ago
Here's the attached screenshot of the code inside the FirebaseRegister
kevin turado
1 year ago

Hi,

My client bought the template named Berry, I've been customizing the Authentication, especially the registration page, I can now register but I've been wondering what is the use of scriptedRef?

See attached image for your reference.


Thanks,

Kevin

Additional Info

Order#: 42925

Purchase From?: Material Ui

Name of Product/template: Berry template