Skip to content

Commit ecb14cc

Browse files
authored
fix: correct Descope provider config (#8003)
1 parent 8cee24d commit ecb14cc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/core/src/providers/descope.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,25 @@
1313

1414
import type { OIDCConfig, OIDCUserConfig } from "./index.js"
1515

16-
/** The returned user profile from Descope when using the profile callback. */
16+
/** The returned user profile from Descope when using the profile callback.
17+
* [See Load User](https://docs.descope.com/api/openapi/usermanagement/operation/LoadUser/)
18+
*/
1719
export interface DescopeProfile {
18-
/** The user Descope ID */
20+
/** The user's unique Descope ID */
1921
sub: string
22+
/** The user's name */
2023
name: string
24+
/** The user's email */
2125
email: string
26+
/** A boolean indicating if the user's email is verified */
2227
email_verified: boolean
28+
/** The user's phone number */
2329
phone_number: string
30+
/** A boolean indicating if the user's phone number is verified */
2431
phone_number_verified: boolean
32+
/** The user's picture */
2533
picture: string
26-
/** Custom user's attributes */
34+
/** The user's custom attributes */
2735
[claim: string]: unknown
2836
}
2937

@@ -97,7 +105,7 @@ export default function Descope(
97105
id: "descope",
98106
name: "Descope",
99107
type: "oidc",
100-
clientId: `https://api.descope.com/${config.clientId}`,
108+
issuer: `https://api.descope.com/${config.clientId}`,
101109
style: {
102110
logo: "/descope.svg",
103111
logoDark: "/descope.svg",

0 commit comments

Comments
 (0)