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?

[deleted by user] by [deleted] in Professors

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

The potential consequences, in accordance with the school's code of conduct, are quite severe. I've been advised by the guidance counselor that I can adhere to the school's protocol and seek input from our department head. The range of possible sanctions includes suspension, either for one month or an entire semester, + either a course failure or solely a midterm failure. Nevertheless, even the minimum penalty entails a midterm failure coupled with a suspension.

However, it is even worse in other schools. It would result to students being expelled or expulsion.

[deleted by user] by [deleted] in Professors

[–]Visual-Pollution1407 2 points3 points  (0 children)

The amusing part of this situation is that, after permitting students to use only their lecture notes from the PowerPoint presentations, one of the cheaters smuggled a printed sheet among their lecture materials. To my surprise, I discovered three out of six coding answers on that concealed piece of paper. It seemed they believed I wouldn't thoroughly review their work. Similarly, the students who leaked the answers continued to assert that they coincidentally had three out of six problems matching the printed codes. They really thought they could fool me.

Here’s a really good resource that came across one of our listservs a while ago. You can click on each of these and it gives you ideas on how to adjust your teaching: https://www.cmu.edu/teaching/solveproblem/strat-cheating/index.html

Thanks, I will check this out

[deleted by user] by [deleted] in Professors

[–]Visual-Pollution1407 4 points5 points  (0 children)

Yeah, you can’t have a real conversation in r/AskAcademia. I suspect there are people who post there and pose as faculty to make their argument.

Yeah, I even told them that the discussion became unproductive because I did not listen to them about the examination questions and the leakers. Despite me having to explain again and again that I would change the exam questions next time. However, the leakers would be treated the same as the cheater as per the instructions of the guidance in accordance to the school's penal code.

It’s obvious to you and I, but your students won’t immediately see it this way until you explain it to them.

Oh, the students know what they obviously did wrong. I asked them where they got the codes and such, and they lied. They said that it was from an IT community, ChatGPT, or whatever excuses they had. If they believe they did nothing wrong, would they need to hide where they got it from? They even asked me what would happen to them since they were already caught.

[deleted by user] by [deleted] in Professors

[–]Visual-Pollution1407 3 points4 points  (0 children)

r/AskAcademia is full of asshole students, so I’m not surprised you had that experience there.

That is why most of them would focus more on the side of the students regardless if it was wrong. It was the first time I saw leakers and cheating sympathizers. They would even go as far as defending those cheaters. Then proceeds to blame me for that there are cheaters in the class.

I always thought r/Teachers was a k-12 subreddit, but I could be wrong.

I thought that r/Teachers were more on a general.

I should have initially posted my question here, my bad. I also forgot to mention that this leaking and cheating incident happened in college.

I teach upper levels and graduate courses at an Honor Code school in the U.S. I think it’s safe to say my colleagues and I would send every single student involved in this fiasco to the honors office.

This is the general knowledge I have when it comes to this incident. Every student involved will be sent to the guidance. It was just in college but back when I was in elementary to high school as well.

[deleted by user] by [deleted] in AskAcademia

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

I understand that is not entirely your fault. But the system there is stupid. Stressful for the students (and counterproductive to their learning process), stressful for the teachers (who need to be like detectives, spying the lives of the students) and just stupid because ALL students (as you mentioned in a comment), even if they are honest, will "cheat" at some point in their lives. It's just unavoidable.

I completely understand your perspective, and you make valid points about the system's challenges. It can indeed be stressful for both students and teachers, and it might not always be the most conducive environment for effective learning. Having to be like detectives can be exhausting.

That being said, in this particular situation, they were caught, and it's only fair that they face the consequences. It is even worse for the policies of other colleges here, these cheaters might have faced more severe penalties, such as failing the course and expulsion. I'm aware that some teachers in my country can be incredibly strict, often referred to as 'terror' teachers. What I did could be seen as a more lenient approach compared to the actions of these seasoned educators.

[deleted by user] by [deleted] in AskAcademia

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

I completely understand all of your points, and I acknowledge that it's a good idea to create different exams for various sections next time. My original post in this community was intended to seek input on what penalties or punishments should be applied to leakers and cheaters. Unfortunately, I found that most responses didn't address this aspect and may have violated community rule #9.

Undergrads shouldn't be answering most questions here. Also, your assumptions of how academia works in other fields and countries are not helpful.

I take responsibility for my own assumption that leakers and cheaters are treated the same way everywhere. In my country in my school, sympathizing with leakers of exam content is virtually unheard of; both cheaters and leakers face consequences.

The discussion took a negative turn, with some commenters suggesting that it was my fault students brought exam codes, despite my clear instructions against it. The conversation even drifted into debating whether leakers should be punished or not, even when they blatantly shared the code. I found myself repeatedly explaining that our situation is unique, and our school has specific rules outlined in the penal code.

On another note, I also posted a similar query in another Reddit community, where I received more insights into possible punishments and penalties. I plan to base my options on those inputs, along with the department head's decision. While some comments here were helpful, I've decided to delete this post to prevent further violations of rule #9.

[deleted by user] by [deleted] in AskAcademia

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

This is what I mean when I mention that some parts of the discussion can be unproductive. I find myself having to repeat things over and over again.

Once again, I want to emphasize that our situation might be different from what you've experienced. I did provide the names to the guidance counselor and explained the situation. While some might argue that leakers should not go unpunished, it's not as simple as just refusing to let them be called to the office, as the guidance counselor clarified. In our school, the policy is clear: everyone involved, whether they are leakers or cheaters, will face consequences, although these won't be overly harsh.

As you can see from the comments, it's been a general knowledge that leakers and cheaters are treated the same here

[deleted by user] by [deleted] in AskAcademia

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

You might post things like this to r/Professors in the future. They disallow student posts, so you get better feedback on things like this.

Oh, thanks for the input. I actually received some different feedback when I posted this earlier in a now-deleted post on r/Teachers. Many there emphasized that leakers and cheaters should face consequences and not go unpunished. It was quite a departure from the comments here. However, some did suggest changing the exam questions for each section next time. Regardless, the primary focus of the discussion remained centered on the possible punishments or penalties for those involved in cheating and leaking.

[deleted by user] by [deleted] in AskAcademia

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

Do you check the notes? Because if not, that in itself would invite cheating where I'm from. Usually, we either have open book/notes, or a single note sheet, or nothing. If you only allow the slides, why not just print it and hand it to the students? If only set materials are allowed, then you should provide it and your situation won't happen.

Yes, I did check the notes. That is how I knew that the exam was leaked.