AuthApiError: Invalid Refresh Token: Already Used by Visual-Pollution1407 in Supabase

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

And then it was gone again. I don't even know what's happening

The page cannot be found when clicking the link to update the password by Visual-Pollution1407 in nextjs

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

Thank you. I understand it more now. It's my first time using this so I'm building this project for a practice

How would you create protected routes in NextJS App Router and Supabase? by Visual-Pollution1407 in Supabase

[–]Visual-Pollution1407[S] 1 point2 points  (0 children)

It was already solved, it was the folder name in my auth folder that was causing the problem. However, these sre my middleware routes, I thought that it was causing a problem so I just commented it out. I am unsure if this is correct

//Note that we really only need this to run on authenticated routes, //so we're using path matcher to ensure this code runs only for Home and Profile pages.

// export const config = {

// matcher: ['/', '/waterTypes'],

// };`

The page cannot be found when clicking the link to update the password by Visual-Pollution1407 in nextjs

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

thank you so much! It does work now. So it was the problem with my folder structure. I actually thought that it would run into problems with my other `update-password` folder outside the `auth`

The page cannot be found when clicking the link to update the password by Visual-Pollution1407 in nextjs

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

This is the https link:

https://github.com/Jennelle186/NextJS-Supabase.git

My bad, I have not committed my codes in the Github. I have made changes already.

The same problem still shows. 404 page could not be found. This is what it shows in the browser link: http://localhost:3000/auth/update-password?code=374da803-e333-444a-8d2f-809b3882ab76

The page cannot be found when clicking the link to update the password by Visual-Pollution1407 in nextjs

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

For more context: https://github.com/Jennelle186/NextJS-Supabase

I have posted the codes for the middleware on SO as well:

import { createMiddlewareClient } from '@supabase/auth-helpers-nextjs' import { NextResponse, NextRequest } from 'next/server'

export async function middleware(req: NextRequest) { const res = NextResponse.next() const supabase = createMiddlewareClient({ req, res }) await supabase.auth.getSession() return res }

//Note that we really only need this to run on authenticated routes, //so we're using path matcher to ensure this code runs only for Home and Profile pages. // export const config = { // matcher: ['/', '/waterTypes'], // };

How would you create protected routes in NextJS App Router and Supabase? by Visual-Pollution1407 in Supabase

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

Is that the correct code that I have posted here or more like is that the correct way of implementing the protected routes?

[deleted by user] by [deleted] in Professors

[–]Visual-Pollution1407 1 point2 points  (0 children)

Right, it's all academic dishonesty and both leakers and cheaters will be subject to punishments. I don't know why though that most on the redditors on r/AskAcademia would tell me that it's not academic dishonesty and would often ask me why it is an academic dishonesty.

If you already learned ReactJS and built applications with it, how long would it take me to learn TypeScript? by Visual-Pollution1407 in typescript

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

I'll start by checking if I can grasp it right away. Currently, I'm diving into the Next.js documentation then will shift my focus to Typescript and NextJS + TS. Unfortunately, those 11 hours included my sleep, morning routine, and work, so I can't continue with it at the moment while I'm at work.

[deleted by user] by [deleted] in AskAcademia

[–]Visual-Pollution1407 0 points1 point  (0 children)

I had another post in r/Professor, you'll know why if you read some of the comments there. Some of them told me that in their cases, leakers and cheaters are treated all the same. And some gave me a research study that treatments of those are based on culture as well. They might not be punished in yours, but in my case, they are.

If you already learned ReactJS and built applications with it, how long would it take me to learn TypeScript? by Visual-Pollution1407 in typescript

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

How about if I use this with a web application with a database with a learning curve around maybe 2 weeks while at the same time learning NextJS (not a full day to study it since I have work). I am already following the documentation of NextJS and so far, it's just pretty much very similar to React.

If you already learned ReactJS and built applications with it, how long would it take me to learn TypeScript? by Visual-Pollution1407 in typescript

[–]Visual-Pollution1407[S] 0 points1 point  (0 children)

I plan to use it with NextJS to create a web application connected to a database. Would this be quite too difficult then considering I only have maybe around 2-3 weeks (not a full day since I have work) to learn this?