Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Question: How to make use of `redirectUrl` inside `signInSuccessWithAuthResult`

Open
#119 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
15/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
firebase, javascript, react

Research direction

The issue names signInSuccessWithAuthResult and redirectUrl but no files or tests. Start by locating the sign-in callback and its redirectUrl handling in the React wrapper, then check the authentication documentation. Done would be a clear documented approach for role-based post-sign-in redirects.

Written by the indexing model from the issue text.

Description

type: question

Hello,

I'm using email link authentication for my app. In the app, there're two kinds of users, normal users and admin users, and I would like to be able to redirect them differently after a sign-in success. How would I do that? I've checked around but still have no idea. I'm thinking redirectUrl inside signInSuccessWithAuthResult might have something to do with this but I'm not sure. I'll really appreciate any help.

Just a note. I think as the last resort it's always possible to have the same redirect for both users, but render the views differently. But I would really appreciate any help or comment.

Thanks!

Dominant language
JavaScript
Stars
1.3k
Forks
246
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebaseui-web-react

All issues in firebase/firebaseui-web-react

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.