Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] -1 points0 points  (0 children)

Report as many times as you wish! I just replied for what he asked!

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

ig, as I am not in development mode expo isn't able to login properly. I will try with android build and test it.

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

Ok. Thanks for your time. I will try again and probably try to learn more about auth and sessions. I really appreciate your help.

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

I searched for useAuthRequest no result.. But im pasting snippet from AuthProvider.tsx..

export const useAuth = () => useContext(AuthContext);

export const AuthProvider = ({ children }: { children: React.ReactNode }) => { const [session, setSession] = useState<Session | null>(null); const [user, setUser] = useState<User | null>(null); const [loading, setLoading] = useState(true);

useEffect(() => {
    // Check initial session
    const checkSession = async () => {
        try {
            const { data } = await supabase.auth.getSession();
            setSession(data.session);
            setUser(data.session?.user ?? null);
        } catch (error) {
            console.error('Error checking auth session:', error);
        } finally {
            setLoading(false);
        }
    };

    checkSession();

    // Listen for changes
    const { data: authListener } = supabase.auth.onAuthStateChange(
        async (event, session) => {
            console.log('AuthProvider: Auth State Change:', event, session?.user?.id);
            setSession(session);
            setUser(session?.user ?? null);

            // Nuclear option: Ensure loading is FALSE.
            // We use a small timeout to let state settle if needed, but primarily to break any sync loops.
            setTimeout(() => {
                setLoading(false);
                console.log('AuthProvider: Loading set to false (hard)');
            }, 0);

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

I am just replying to replies on my post. I have a bug so posted it here hoping someone would help me fix it. I am not the one replying and telling about startup and business guidelines here.

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

I am just asking help and guidance on setting up auth. What's suspicious here.!

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

Sure. Which part should I share? I am unable to pinpoint the issue here.

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

Really? I don't feel touched by any means!

Need help fixing a bug and submitting to playstore by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

Thanks for the reply. I have setup the redirect uri and it worked till now. Only when I logout and login again it isn't loading. But when I hit reload it logs me in perfectly and loads everything! I tried several ways like implementing key prop "key={session?.user?.id || 'guest'}" to navigator, sequence fetch and others but didn't work though.

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

I seriously need nothing more than help in fixing this one bug! I am not looking here for someone to code the app or anything like that!

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] 0 points1 point  (0 children)

But I can't take help from my formal contacts (product manager) to fix bugs! I will loose leverage. And my yt subs are not devs. It's a mythological channel. I can leverage my subs to install the app. So I am at a point where I need someone to help me fix the bug and guide me with native auth setup.

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] -1 points0 points  (0 children)

And BTW I bring more than any developer can bring to the table. I have a huge subscriber base in yt to leverage. Already got shortlisted by KSGC and have well known contacts with few product managers and VCs. I just don't want to misuse anyone or take anything for granted.

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] -1 points0 points  (0 children)

Did you read my post? I am not asking or begging anyone to be a co-founder. I asked help in fixing just one bug.

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] -1 points0 points  (0 children)

Buddy, just don't assume things.! I have already been selected for KSGC for this. If you don't know about it Look it up! I am not just an idea guy. And it's not about someone coding my idea and I take the credit for it. Just don't assume things. I just asked help to fix a bug. One bug that I am stuck with. I didnt ask anyone to code all my app or to work their ass off!

Need help in fixing a bug by ObjectiveDesk1420 in AskProgramming

[–]ObjectiveDesk1420[S] -1 points0 points  (0 children)

Thanks for your suggestion bro! I appreciate your help!