Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Oct 18, 2024
1 parent 6ea6407 commit 732cd16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session/AbstractSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function get(string $key, $default = null): mixed
return $this->session->get($key, $default);
}

public function did(): mixed
public function did(): string
{
return $this->get('did', '');
}
Expand Down
5 changes: 5 additions & 0 deletions src/Session/OAuthSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

class OAuthSession extends AbstractSession
{
public function did(): string
{
return $this->get('did', $this->get('sub', ''));
}

public function token(): string
{
return $this->get('access_token', '');
Expand Down

0 comments on commit 732cd16

Please sign in to comment.