mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 10:30:09 +00:00
feat: oidc client data preview (#624)
Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -103,6 +103,13 @@ class OidcService extends APIService {
|
||||
const response = await this.api.get(`/oidc/device/info?code=${userCode}`);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
async getClientPreview(id: string, userId: string, scopes: string) {
|
||||
const response = await this.api.get(`/oidc/clients/${id}/preview/${userId}`, {
|
||||
params: { scopes }
|
||||
});
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
export default OidcService;
|
||||
|
||||
Reference in New Issue
Block a user