Skip to content

Commit 1f7b0ed

Browse files
committed
docs(auth): add callback implementation instruction
1 parent d777e52 commit 1f7b0ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/auth/src/Installer/OAuthInstaller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public function install(): void
4545
'',
4646
'Next steps:',
4747
'1. Update the .env file with your OAuth credentials',
48-
'2. Review and customize the published files if needed',
48+
'2. Implement the OAuth controller callback method',
49+
'3. Review and customize the published files if needed',
4950
'',
5051
'<strong>Published files</strong>',
5152
...arr($this->publishedFiles)->map(fn (string $file) => '<style="fg-green">→</style> ' . $file),

packages/auth/src/Installer/oauth/OAuthControllerStub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public function redirect(): Redirect
3232
#[Get('callback-route')]
3333
public function callback(Request $request): Redirect
3434
{
35+
// TODO: implement, the code below is an example
36+
3537
$this->oauth->authenticate(
3638
request: $request,
3739
map: fn (OAuthUser $user): Authenticatable => query('user-model-fqcn')->updateOrCreate([

0 commit comments

Comments
 (0)