button customization
kkagill opened this issue · 3 comments
kkagill commented
Nekonyx commented
Hey, thanks!
- Yes, this button can be customized. Just pass
style
property:
export interface OAuthProviderButtonStyles {
logo: string
logoDark: string
bg: string
bgDark: string
text: string
textDark: string
}
- Yep, just do this:
import { signIn } from 'next-auth/react'
signIn('steam')
Nekonyx commented
Small note: I would rather import PROVIDER_ID
from the library than specifying steam
directly:
import { PROVIDER_ID } from 'next-auth-steam'
import { signIn } from 'next-auth/react'
signIn(PROVIDER_ID)
But it's up to you.
kkagill commented
Thanks a lot! so much better :)