useProviderLink()
Use the composable useProviderLink
to get an OAuth provider URL that can be used to sign in users.
const providerLink = useProviderLink()
Parameters
options optional NestedRefOfValue<undefined | ProviderOptions>
Examples
const providerLink = useProviderLink()
import { useProviderLink } from '@nhost/vue'
const Component = () => {
const { facebook, github } = useProviderLink()
return (
<div>
<a href={facebook}>Sign in with Facebook</a>
<a href={github}>Sign in with GitHub</a>
</div>
)
}