multiple signin buttons, signout, and credential signin. #11699
Replies: 1 comment
-
Okay got it ! @/component/auth.tsx
app/page.tsx
Working example code :- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am wondering do I have to use the "use server" form submit pattern :-
Can I use a
"use client"
based pattern.I am not fond of having to wrap multiple multiple buttons each in their separate HTML Form Element.
I am not at all familiar with the Next.js
"use server"
verses the"use client"
which seems to be exercise in hidden templating on the server side.I ideally want a pattern that I can use HTML Buttons to invoke OAuth providers, and also provide a credential email and password based sign in with a database adapter such as TypeORM or Pirisma.
Hope someone can enlighten me as to what is going on here and hopefully provide some sane code example pattern I may follow.
Beta Was this translation helpful? Give feedback.
All reactions