Skip to content

Commit

Permalink
Merge branch 'main' into feat/token_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers authored Sep 20, 2024
2 parents 60387bf + c7fcaa7 commit 4ec8d5f
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 31 deletions.
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export enum Scopes {
email = "email",
profile = "profile",
openid = "openid",
offline_access = "offline_access",
offline_access = "offline",
}

export type LoginMethodParams = Pick<
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/generateAuthUrl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("generateAuthUrl", () => {
state: "state123",
};
const expectedUrl =
"https://auth.example.com/oauth2/auth?client_id=client123&response_type=code&start_page=login&redirect_uri=https%3A%2F%2Fexample2.com&scope=openid+profile+offline_access&prompt=create&state=state123";
"https://auth.example.com/oauth2/auth?client_id=client123&response_type=code&start_page=login&redirect_uri=https%3A%2F%2Fexample2.com&scope=openid+profile+offline&prompt=create&state=state123";

const result = generateAuthUrl(domain, IssuerRouteTypes.login, options);
const nonce = result.url.searchParams.get("nonce");
Expand All @@ -80,7 +80,7 @@ describe("generateAuthUrl", () => {
prompt: "create",
};
const expectedUrl =
"https://auth.example.com/oauth2/auth?client_id=client123&response_type=code&start_page=login&redirect_uri=https%3A%2F%2Fexample2.com&scope=openid+profile+offline_access&prompt=create";
"https://auth.example.com/oauth2/auth?client_id=client123&response_type=code&start_page=login&redirect_uri=https%3A%2F%2Fexample2.com&scope=openid+profile+offline&prompt=create";

const result = generateAuthUrl(domain, IssuerRouteTypes.login, options);
const nonce = result.url.searchParams.get("nonce");
Expand Down
87 changes: 60 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ exports `storageSettings` which can be used to configure the storage methods.

`ChromeStore` - This holds the data in chrome.store.local for use with Google Chrome extensions.

`ExpoSecureStore` - Secure storage for Expo apps

### Token Helpers

Linking in with the activeStorage, a number of token helpers are available.
Expand Down Expand Up @@ -78,7 +80,6 @@ Linking in with the activeStorage, a number of token helpers are available.

`getUserProfile` - get the profile of the user from the ID token


## Kinde documentation

[Kinde Documentation](https://kinde.com/docs/) - Explore the Kinde docs
Expand Down

0 comments on commit 4ec8d5f

Please sign in to comment.