Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import {getLogoUrl, getDarkModeLogoUrl} from "@kinde/infrastructure";
// User preference
<picture>
<source
media="(prefers-color-scheme: dark)
media="(prefers-color-scheme: dark)"
srcset={getDarkModeLogoUrl()}
>
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,26 @@ Here’s an example of a form field with its style hooks:

```html
<div
class="kinde-form-field kinde-form-field-variant-select-text
data-kinde-form-field="true
data-kinde-form-field-variant="select-text
class="kinde-form-field kinde-form-field-variant-select-text"
data-kinde-form-field="true"
data-kinde-form-field-variant="select-text"
>
<label class="kinde-control-label" data-kinde-control-label="true" for="credentials_email">
Email
</label>
<input
class="kinde-control-select-text
data-kinde-control-select-text="true
data-kinde-control-select-text-variant="text
id="credentials_email
name="p_email
required="
kui-input-persist="true
autocapitalize="off
autocomplete="email
spellcheck="false
type="email
inputmode="email
class="kinde-control-select-text"
data-kinde-control-select-text="true"
data-kinde-control-select-text-variant="text"
id="credentials_email"
name="p_email"
required=""
kui-input-persist="true"
autocapitalize="off"
autocomplete="email"
spellcheck="false"
type="email"
inputmode="email"
/>
</div>
```
Expand Down Expand Up @@ -244,7 +244,7 @@ data-kinde-layout-button-group
Component or layout variants follow this structure, as shown in the **Button** component:

```
data-kinde-button-variant="primary
data-kinde-button-variant="primary"
| | | |
| | | └── Variant (primary)
| | └── Component/layout name (button)
Expand All @@ -256,10 +256,10 @@ Example HTML:

```html
<button
class="kinde-button kinde-button-variant-primary
data-kinde-button="true
data-kinde-button-variant="primary
type="submit
class="kinde-button kinde-button-variant-primary"
data-kinde-button="true"
data-kinde-button-variant="primary"
type="submit"
>
<span class="kinde-button-text" data-kinde-button-text="true"> Save </span>
</button>
Expand All @@ -282,12 +282,12 @@ Example HTML:

```html
<a
class="kinde-text-link
data-kinde-text-link="true
data-kinde-text-link-is-external="true
href="[url]
target="_blank
rel="noopener noreferrer
class="kinde-text-link"
data-kinde-text-link="true"
data-kinde-text-link-is-external="true"
href="[url]"
target="_blank"
rel="noopener noreferrer"
>
Terms of use
</a>
Expand All @@ -297,13 +297,13 @@ A component or layout can have multiple modifiers:

```html
<a
class="kinde-text-link kinde-text-link-is-inline
data-kinde-text-link="true
data-kinde-text-link-is-external="true
data-kinde-text-link-is-inline="true
href="[url]
target="_blank
rel="noopener noreferrer
class="kinde-text-link kinde-text-link-is-inline"
data-kinde-text-link="true"
data-kinde-text-link-is-external="true"
data-kinde-text-link-is-inline="true"
href="[url]"
target="_blank"
rel="noopener noreferrer"
>
Terms of use
</a>
Expand Down
18 changes: 9 additions & 9 deletions src/content/docs/developer-tools/sdks/backend/elixir-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ Follow these steps to set up the project:
2. Add the following, but change the `“values”` to match your own information.

```elixir
export KINDE_BACKEND_CLIENT_ID="test_x1y2z3a1
export KINDE_FRONTEND_CLIENT_ID="test_a1b2c3d4
export KINDE_CLIENT_SECRET="test_112233
export KINDE_REDIRECT_URL="http://text.com/callback
export KINDE_DOMAIN="https://test.kinde.com
export KINDE_LOGOUT_REDIRECT_URL="http://text.com/logout
export KINDE_PKCE_LOGOUT_URL="http://test.com/logout
export KINDE_PKCE_REDIRECT_URL="http://test.com/pkce-callback
export KINDE_BASE_URL="https://app.kinde.com
export KINDE_BACKEND_CLIENT_ID="test_x1y2z3a1"
export KINDE_FRONTEND_CLIENT_ID="test_a1b2c3d4"
export KINDE_CLIENT_SECRET="test_112233"
export KINDE_REDIRECT_URL="http://text.com/callback"
export KINDE_DOMAIN="https://test.kinde.com"
export KINDE_LOGOUT_REDIRECT_URL="http://text.com/logout"
export KINDE_PKCE_LOGOUT_URL="http://test.com/logout"
export KINDE_PKCE_REDIRECT_URL="http://test.com/pkce-callback"
export KINDE_BASE_URL="https://app.kinde.com"
```

1. If required, set the scopes. You can include scopes such as `openid` `profile` `offline`, in addition to `email`.
Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/developer-tools/sdks/backend/java-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,10 @@ Configure the web.xml file to use these servlets.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<servlet>
<servlet-name>KindeLoginServlet</servlet-name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ For general information about how organizations work in Kinde, see [Kinde organi
If your Next.js application uses a custom base path for your API. The default path is `/api/auth` but to override this setting you can change this in your .`env` file as follows:

```bash
KINDE_AUTH_API_PATH="/my/custom/path
KINDE_AUTH_API_PATH="/my/custom/path"
```

## Kinde Management API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ This will handle Kinde Auth endpoints in your Next.js app.
The default path for the Kinde Auth API is `/api/auth`. If your Next.js application uses a custom base path for your API, you can override this setting by setting the following variable in your `.env` file:

```bash
KINDE_AUTH_API_PATH="/my/custom/path
KINDE_AUTH_API_PATH="/my/custom/path"
```

You can also customise the Kinde Auth API sub-paths by setting the following variables in your `.env` file:
Expand All @@ -125,8 +125,8 @@ You can also customise the Kinde Auth API sub-paths by setting the following var
Given the following `.env` file:

```bash
KINDE_AUTH_API_PATH="/my/custom/path
KINDE_AUTH_LOGIN_ROUTE="app_login
KINDE_AUTH_API_PATH="/my/custom/path"
KINDE_AUTH_LOGIN_ROUTE="app_login"
```

The Kinde login route for your application will be `/my/custom/path/app_login`.
Expand Down Expand Up @@ -1553,7 +1553,7 @@ export const UpdatePermissionsButton = () => {

return (
<button
type="button
type="button"
onClick={handleUpdatePermissions}
>
Update Permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,13 @@ user = await management.get_user(user_id="user_123")
new_user = await management.create_user(
email="[email protected]",
given_name="John",
family_name="Doe
family_name="Doe"
)

# Update a user
updated_user = await management.update_user(
user_id="user_123",
given_name="Johnny
given_name="Johnny"
)

# Delete a user
Expand All @@ -741,13 +741,13 @@ org = await management.get_organization(org_id="org_123")

# Create a new organization
new_org = await management.create_organization(
name="My Organization
name="My Organization"
)

# Update an organization
updated_org = await management.update_organization(
org_id="org_123",
name="Updated Name
name="Updated Name"
)

# Delete an organization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,15 +547,15 @@ The audience of a token is the intended recipient of the token.

```jsx
<KindeProvider
audience="<your_api>
audience="<your_api>"
>
```

To request multiple audiences, pass them separated by white space.

```jsx
<KindeProvider
audience="<your_api1> <your_api2>
audience="<your_api1> <your_api2>"
>
```

Expand Down Expand Up @@ -733,7 +733,7 @@ You can override this by passing `scope` into the `<KindeProvider>`.

```jsx
<KindeProvider
scope="openid
scope="openid"
>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ You can find these variables in Kinde. Go to **Settings > Applications > [Your a
<application ...>
...
<meta-data
android:name="au.kinde.domain
android:name="au.kinde.domain"
android:value="your_kinde_url" />

<meta-data
android:name="au.kinde.clientId
android:name="au.kinde.clientId"
android:value="your_kinde_client_id" />
...
</application>
Expand All @@ -114,11 +114,11 @@ Configuration example:
<application ...>
...
<meta-data
android:name="au.kinde.domain
android:name="au.kinde.domain"
android:value="app.kinde.com" />

<meta-data
android:name="au.kinde.clientId
android:name="au.kinde.clientId"
android:value="test@live" />
...
</application>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ For secured APIs, an access token is sent from your front end application with e
When mismatched versions of dependent libraries are resolved, requests to the API may fail with HTTP 401 and a token validation error. It will look something like this:

```csharp
Bearer error="invalid_token",error_description="The signature key was not found
Bearer error="invalid_token", error_description="The signature key was not found"
```

For example, if version 7.4.0 or later of `System.IdentityModel.Tokens.Jwt` is installed with a version of `Microsoft.AspNetCore.Authentication.JwtBearer` that is dependent on an earlier version of `Microsoft.IdentityModel.Protocols.OpenIdConnect`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ Our SDKs accept an `audience` parameter. As an example for the React SDK you w

```jsx
<KindeProvider
audience="api.example.com/v1
clientId="someClientId
domain="https://kinde.example.com
audience="api.example.com/v1"
clientId="someClientId"
domain="https://kinde.example.com"
>
<MyApp />
</KindeProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ For example in the React SDK:

```jsx
<RegisterLink
className="btn btn-dark
className="btn btn-dark"
properties={{
utm_source: "my source",
utm_medium: "some medium",
Expand Down