Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions includes/class-token-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public function get( $key, $hash = true ) {
}

$value['user'] = $user_id;
$value['sub'] = $value['me'];
return $value;
}

Expand Down
1 change: 1 addition & 0 deletions tests/test-introspection-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static function wpSetUpBeforeClass( $factory ) {
);
static::$test_auth_code['me'] = get_author_posts_url( static::$author_id );
static::$test_token['me'] = get_author_posts_url( static::$author_id );
static::$test_token['sub'] = static::$test_token['me'];
static::$refresh_token['me'] = get_author_posts_url( static::$author_id );
static::$subscriber_id = $factory->user->create(
array(
Expand Down
Loading