File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 * @property string $accessToken
1111 * @property string $refreshToken
1212 * @property ?Impersonator $impersonator
13- * @property OAuthTokens $oauthTokens
13+ * @property ? OAuthTokens $oauthTokens
1414 */
1515class AuthenticationResponse extends BaseWorkOSResource
1616{
Original file line number Diff line number Diff line change 55/**
66 * Class OAuthTokens.
77 *
8- * @property string|null $accessToken
9- * @property string|null $refreshToken
10- * @property int|null $expiresAt
8+ * @property string $accessToken
9+ * @property string $refreshToken
10+ * @property int $expiresAt
1111 * @property array $scopes
1212 */
1313class OAuthTokens extends BaseWorkOSResource
@@ -37,4 +37,4 @@ public static function constructFromResponse($response)
3737
3838 return $ instance ;
3939 }
40- }
40+ }
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ public function testAuthenticateWithOAuthTokensReturned()
385385
386386 $ response = $ this ->userManagement ->authenticateWithCode ("project_0123456 " , "01E2RJ4C05B52KKZ8FSRDAP23J " );
387387 $ this ->assertSame ($ userFixture , $ response ->user ->toArray ());
388-
388+
389389 // Test OAuth tokens
390390 $ this ->assertNotNull ($ response ->oauthTokens );
391391 $ this ->assertSame ("oauth_access_token_123 " , $ response ->oauthTokens ->accessToken );
You can’t perform that action at this time.
0 commit comments