Skip to content

Commit

Permalink
Update DPoP.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Dec 6, 2024
1 parent a8ebb61 commit 37928e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Socialite/Key/DPoP.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ final class DPoP
*/
public static function generate(): string
{
return OAuthKey::create()->privateB64();
return P256::create()->privateB64();
}

public static function load(): JsonWebKey
{
return OAuthKey::load(session()->remember(self::SESSION_KEY, fn () => self::generate()))->toJWK();
return P256::load(session()->remember(self::SESSION_KEY, fn () => self::generate()))->toJWK();
}

/**
Expand Down

0 comments on commit 37928e6

Please sign in to comment.