Examples
Here's the regular/parameter syntax in action, especially useful if the provider name comes from variable.
<a href="{{ oauth provider="github" }}">Sign In with Github</a>
<a href="{{ Statamic::tag('oauth')->provider('github') }}">Sign In with Github</a>
<a href="/oauth/github">Sign In with Github</a>
And the shorthand version.
<a href="{{ oauth:github }}">Sign In with Github</a>
<a href="{{ Statamic::tag('oauth:github') }}">Sign In with Github</a>
<a href="/oauth/github">Sign In with Github</a>
And now with a redirect:
<a href="{{ oauth:github redirect="/account" }}">Sign In with Github</a>
<a href="{{ Statamic::tag('oauth:github')->redirect('/account') }}">Sign In with Github</a>
<a href="/oauth/github?redirect=/account">Sign In with Github</a>
Parameters
provider
The provider to be used. You may either specify as a parameter or as a tagpart for shorthand: {{ oauth provider="github" }}
or {{ oauth:github }}
redirect
The URL to be taken to after authenticating. This will be appending onto the generated URL as a query parameter.