Files
website/src/pages/auth/ateneo.astro
T

9 lines
264 B
Plaintext

<script>
import { authClient } from '@/client/auth-client' //import the auth client
await authClient.signIn.oauth2({
providerId: 'unipi',
callbackURL: '/profilo', // the path to redirect to after the user is authenticated
})
</script>