Next.js Discord

Discord Forum

2 imports with the same name?

Answered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
Hey everyone. I'm trying to import the 2 items below into Next JS file. They're both named signOut. How do I rename one of these? Thanks!
import { signOut } from 'firebase/auth';
import { signOut } from 'next-auth/client';
Answered by Ray
import { signOut as fbSignOut } from 'firebase/auth';
import { signOut } from 'next-auth/client';
View full answer

2 Replies

import { signOut as fbSignOut } from 'firebase/auth';
import { signOut } from 'next-auth/client';
Answer
Morelet’s CrocodileOP
Thanks @Ray !