Skip to content

feat: start of expo guide#414

Merged
DanielRivers merged 3 commits into
mainfrom
daniel/feat/expo
May 14, 2025
Merged

feat: start of expo guide#414
DanielRivers merged 3 commits into
mainfrom
daniel/feat/expo

Conversation

@DanielRivers
Copy link
Copy Markdown
Member

@DanielRivers DanielRivers commented May 9, 2025

Description (required)

Adds the Expo guide

Related issues & labels (optional)

  • Closes #
  • Suggested label:

Summary by CodeRabbit

  • Documentation
    • Updated and simplified the guide to focus solely on Expo workflow for integrating the Kinde React Native SDK.
    • Removed instructions for bare React Native setup and deprecated patterns.
    • Updated usage examples to reflect the latest Expo integration using React context and hooks.
    • Added a new comprehensive Expo SDK documentation page including setup, authentication, token utilities, configuration, and troubleshooting.
    • Updated SDK links to the new Expo documentation path.
  • New Features
    • Introduced a new component for dynamically displaying token utility function documentation with examples.
    • Added detailed documentation for token utility functions including decoding and inspecting tokens.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2025

Walkthrough

The documentation for integrating the Kinde React Native SDK with Expo was rewritten to focus solely on the Expo managed workflow. All bare React Native instructions were removed, and the guide now uses the KindeAuthProvider and useKindeAuth hook exclusively, with updated authentication and token utility examples.

Changes

File(s) Change Summary
src/content/docs/developer-tools/sdks/native/expo-react-native.mdx Removed entire document that previously covered comprehensive Expo and bare React Native SDK setup, including installation, native linking, deep linking, authentication flows, token handling, organizations, and troubleshooting.
src/content/docs/developer-tools/sdks/native/expo.mdx Added new Expo-focused React Native SDK documentation with detailed setup for Expo managed workflow, usage of KindeAuthProvider and useKindeAuth hook, authentication methods, token utilities, configuration of callback URLs, troubleshooting, and support contacts.
src/content/docs/developer-tools/about/our-sdks.mdx, src/content/docs/developer-tools/sdks/native/react-native-sdk.mdx, src/data/sdkList.ts Updated all references and links for the Expo React Native SDK from /expo-react-native/ to /expo/ to reflect the new documentation path.
src/components/TokenUtils.astro Added new Astro component that dynamically renders documentation for token utility functions, including descriptions, function signatures, and multiple usage examples with syntax highlighting.
src/data/tokenUtils.ts Added export tokenUtilsDocumentation describing the getDecodedToken utility function, including its signature, purpose, and multiple usage examples for decoding access and ID tokens.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant KindeAuthProvider
    participant useKindeAuth
    participant Kinde Auth Service

    App->>KindeAuthProvider: Wrap app with provider (config)
    App->>useKindeAuth: Call hook in component
    App->>useKindeAuth: Call login/register/logout methods
    useKindeAuth->>Kinde Auth Service: Initiate authentication via in-app browser
    Kinde Auth Service-->>useKindeAuth: Return tokens and user info
    useKindeAuth-->>App: Expose user, tokens, roles, permissions, etc.
Loading

Suggested reviewers

  • clairekinde11

Poem

In Expo’s field, the docs did grow,
Old paths uprooted, a streamlined flow.
Hooks and context, fresh and bright,
Guide developers through the night.
No more detours, just Expo’s way—
Hopping forward, hooray, hooray!
🐇✨

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot added the sdk label May 9, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
src/content/docs/developer-tools/sdks/native/expo-react-native.mdx (4)

3-3: Title specificity: Clarify document scope.

The frontmatter title is now simply Expo, which may be too generic in the sidebar and page header. Consider renaming to something like “Expo Managed Workflow” or “Expo (React Native SDK)” to clearly convey that this guide covers the Kinde React Native SDK for Expo.


27-31: Section header phrasing and install step grammar.

  • For consistency, consider changing “### Install package” to “### Install the package”.
  • Ensure the <PackageManagers> component correctly renders the install command for @kinde-oss/react-native-sdk-0-7x.

81-83: Component imports missing.

The snippet uses <Pressable> and <ThemedText> without import statements. Consider adding:

import { Pressable } from 'react-native';
import { ThemedText } from '@kinde-oss/react-native-sdk-0-7x';

or the correct module paths to make the example self-contained.


86-88: Grammar: add missing article “an”.

  • Change “accept and object”“accept an object”
  • Change “Logout accepts object which allows you…”“Logout accepts an object which allows you…”
🧰 Tools
🪛 LanguageTool

[uncategorized] ~88-~88: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a490f1f and b44d430.

📒 Files selected for processing (1)
  • src/content/docs/developer-tools/sdks/native/expo-react-native.mdx (2 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/developer-tools/sdks/native/expo-react-native.mdx

[uncategorized] ~88-~88: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)

🔇 Additional comments (5)
src/content/docs/developer-tools/sdks/native/expo-react-native.mdx (5)

19-19: Approve registration step.

The call-out to register for a Kinde account is clear, direct, and essential for new users. Linking straight to the signup page is user-friendly.


25-25: Approve environment installation link.

Referencing the official React Native environment-setup guide offloads maintenance and ensures users follow up-to-date instructions. This is concise and effective.


91-92: Approve logout usage example.

The snippet correctly shows revoking tokens with kinde.logout({ revokeToken: true }), matching the updated API.


96-105: Verify utility import path consistency.

You import utils from @kinde/expo/utils while the SDK package is scoped @kinde-oss. Please confirm that the utilities package name is indeed @kinde/expo/utils and update if necessary.


145-148: Link target verification for permissions guide.

The link points to /manage-users/roles-and-permissions/user-permissions/. After the documentation refactor, please verify this path still resolves correctly.

Comment thread src/content/docs/developer-tools/sdks/native/expo-react-native.mdx Outdated
Comment thread src/content/docs/developer-tools/sdks/native/expo-react-native.mdx Outdated
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 9, 2025

Deploying kinde-docs-previews with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ba83a1
Status: ✅  Deploy successful!
Preview URL: https://e0c6e9d6.kinde-docs-previews.pages.dev
Branch Preview URL: https://daniel-feat-expo.kinde-docs-previews.pages.dev

View logs

@DanielRivers DanielRivers marked this pull request as draft May 9, 2025 00:23
@DanielRivers DanielRivers marked this pull request as ready for review May 12, 2025 15:58
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (9)
src/content/docs/developer-tools/sdks/native/expo.mdx (9)

17-18: Refine intro for clarity
"This SDK is for people using Expo." could be more precise. Consider rephrasing to something like:

- The Kinde React Native SDK allows developers to quickly and securely integrate a new or an existing React Native application into the Kinde platform. This SDK is for people using Expo.
+ The Kinde React Native SDK allows developers to quickly and securely integrate a new or existing Expo-managed application into the Kinde platform.

37-53: Add closing tag for <KindeAuthProvider> snippet
The code block shows the opening <KindeAuthProvider> but doesn’t include its closing tag, which may confuse readers. Consider adding the corresponding closing tag around your app component, for example:

<KindeAuthProvider
  config={{ /* ... */ }}
  callbacks={{ /* ... */ }}
>
  {/* Your application components */}
- 
+ </KindeAuthProvider>

88-91: Fix missing article in logout description

- Logout accepts object which allows you to revoke the token
+ Logout accepts an object which allows you to revoke the token
🧰 Tools
🪛 LanguageTool

[uncategorized] ~90-~90: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


169-172: Align tone and fix typo in getClaim section

  • Use imperative present tense for consistency with other function docs (e.g., “Get a claim…” rather than “Gets a claim…”).
  • Correct typo “Acessing” → “Accessing”.
- Gets a claim from an access or ID token.
+ Get a claim from an access or ID token.

- // Acessing custom claims
+ // Accessing custom claims

Also applies to: 190-193


196-199: Clarify and punctuate getCurrentOrganization description

- Returns the current users logged in organization code.
+ Returns the current user’s logged-in organization code.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~198-~198: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


251-254: Update permission docs to reference permissions instead of feature flags
The getPermission section currently refers to “feature flag” in its description and examples. It should mention “permission” consistently:

- Get the value of a feature flag.
+ Get the value of a permission.

- // Get the feature flag value
+ // Get the permission value

Also applies to: 261-265


329-333: Correct variable naming in getUserProfile example
The example assigns the profile to a variable named roles. Consider renaming to profile for clarity:

- // Get the feature flag value
- const roles = await getUserProfile();
+ // Get the user profile
+ const profile = await getUserProfile();

Also applies to: 335-342


350-362: Avoid shadowing refreshToken function in example
Rename the result variable to prevent shadowing the function name, e.g.:

- const refreshToken = await refreshToken({ /* ... */ });
+ const refreshResult = await refreshToken({ /* ... */ });

Also applies to: 366-374


381-385: Fix missing article and tone in caching steps

- Make sure you have changed values in `.env` file.
+ Make sure you have changed values in the `.env` file.

- Trying to install packages again: `yarn install` or `npm install`.
+ Install packages again: `yarn install` or `npm install`.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~385-~385: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b44d430 and d8fb3b9.

📒 Files selected for processing (7)
  • src/components/TokenUtils.astro (1 hunks)
  • src/content/docs/developer-tools/about/our-sdks.mdx (1 hunks)
  • src/content/docs/developer-tools/sdks/native/expo-react-native.mdx (0 hunks)
  • src/content/docs/developer-tools/sdks/native/expo.mdx (1 hunks)
  • src/content/docs/developer-tools/sdks/native/react-native-sdk.mdx (1 hunks)
  • src/data/sdkList.ts (1 hunks)
  • src/data/tokenUtils.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • src/content/docs/developer-tools/sdks/native/expo-react-native.mdx
✅ Files skipped from review due to trivial changes (5)
  • src/content/docs/developer-tools/about/our-sdks.mdx
  • src/data/sdkList.ts
  • src/content/docs/developer-tools/sdks/native/react-native-sdk.mdx
  • src/data/tokenUtils.ts
  • src/components/TokenUtils.astro
🧰 Additional context used
🪛 LanguageTool
src/content/docs/developer-tools/sdks/native/expo.mdx

[uncategorized] ~90-~90: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


[uncategorized] ~198-~198: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


[uncategorized] ~213-~213: A punctuation mark might be missing here.
Context: ...UserOrganizations` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


[grammar] ~275-~275: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)


[uncategorized] ~304-~304: It looks like there might be a possessive apostrophe missing. Consider inserting it.
Context: .../ ] // } ``` ### getRoles Get the users Roles

Note: Roles are opti...

(AI_EN_LECTOR_MISSING_NOUN_POSSESSIVE)


[uncategorized] ~385-~385: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🪛 Gitleaks (8.21.2)
src/content/docs/developer-tools/sdks/native/expo.mdx

371-371: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


372-372: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


373-373: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🔇 Additional comments (3)
src/content/docs/developer-tools/sdks/native/expo.mdx (3)

1-15: Frontmatter looks good
The page metadata (ID, title, sidebar order, related articles, and Open Graph image) is well-formed and consistent with our documentation standards.


21-22: No comments—these sections (Register, Before you install, Installation snippet, Auth Methods snippet, Example usage, initial Token utilities heading, import snippet, bullet list of utilities, Properties, Kinde configuration, getDecodedToken, Android/iOS cache commands, and contact info) follow our existing patterns and require no changes.

Also applies to: 23-28, 29-34, 57-78, 82-86, 96-98, 100-108, 110-127, 128-136, 146-154, 391-399, 403-409, 411-414


273-281: Improve language and verify getPermissions signature

  • Change “signed into” to “logged in to” or similar:
    - Get the permissions for the current user for the organization they are signed into.
    + Get the permissions for the current user in their current organization.
  • The signature shown (getPermissions = async <T = string>(permissionKey: T): Promise<PermissionAccess>) may not match the intended function (which typically returns all permissions without a parameter). Please confirm against the source code.
🧰 Tools
🪛 LanguageTool

[grammar] ~275-~275: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)

Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx Outdated
Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (8)
src/content/docs/developer-tools/sdks/native/expo.mdx (8)

11-15: Update Open Graph image to reflect Expo.
The og:image currently points to a React Native SDK graphic. Consider updating it to an Expo-specific image so social previews accurately represent this guide.


17-18: Clarify SDK audience.
The sentence “This SDK is for people using Expo.” could be more descriptive. For example:

This SDK is intended specifically for developers using Expo.

88-90: Add missing article in logout description.
Change

Logout accepts object which allows you to revoke the token

to

Logout accepts an object which allows you to revoke the token
🧰 Tools
🪛 LanguageTool

[uncategorized] ~90-~90: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


193-199: Fix possessive apostrophe in getCurrentOrganization description.
Change

Returns the current users logged in organization code.

to

Returns the current user's logged in organization code.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~195-~195: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


272-274: Correct “signed into” phrasing.
In

Get the permissions for the current user for the organization they are signed into.

use a clearer form, e.g.:

Get the permissions for the current user for the organization they are logged in to.
🧰 Tools
🪛 LanguageTool

[grammar] ~274-~274: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)


301-303: Fix heading grammar for getRoles.
Change

Get the users Roles

to

Get the user’s roles

(lowercase “roles” and include the apostrophe)

🧰 Tools
🪛 LanguageTool

[uncategorized] ~303-~303: It looks like there might be a possessive apostrophe missing. Consider inserting it.
Context: .../ ] // } ``` ### getRoles Get the users Roles

Note: Roles are opti...

(AI_EN_LECTOR_MISSING_NOUN_POSSESSIVE)


382-384: Add article in cache cleanup instruction.
Update

Make sure you have changed values in `.env` file.

to

Make sure you have changed the values in the `.env` file.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~384-~384: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


369-372: Clarify placeholder token values.
The example shows real-looking JWT strings. Add a note that these are placeholders only, for example purposes:

<!-- Note: The token strings shown above are mock values for illustration only. -->
🧰 Tools
🪛 Gitleaks (8.21.2)

370-370: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


371-371: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


372-372: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d8fb3b9 and 2050853.

📒 Files selected for processing (1)
  • src/content/docs/developer-tools/sdks/native/expo.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/developer-tools/sdks/native/expo.mdx

[uncategorized] ~90-~90: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


[uncategorized] ~195-~195: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


[grammar] ~274-~274: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)


[uncategorized] ~303-~303: It looks like there might be a possessive apostrophe missing. Consider inserting it.
Context: .../ ] // } ``` ### getRoles Get the users Roles

Note: Roles are opti...

(AI_EN_LECTOR_MISSING_NOUN_POSSESSIVE)


[uncategorized] ~384-~384: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🪛 Gitleaks (8.21.2)
src/content/docs/developer-tools/sdks/native/expo.mdx

370-370: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


371-371: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


372-372: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (7)
src/content/docs/developer-tools/sdks/native/expo.mdx (7)

90-92: Grammar: Add missing article

- Logout accepts object which allows you to revoke the token
+ Logout accepts an object which allows you to revoke the token
🧰 Tools
🪛 LanguageTool

[uncategorized] ~92-~92: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


195-198: Grammar: Add possessive apostrophe and hyphenation

 ### `getCurrentOrganization`
 
- Returns the current users logged in organization code.
+ Returns the current user's logged-in organization code.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~197-~197: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


252-255: Clarify getPermission description
The description currently mentions “feature flag” instead of permissions. Consider:

 ### `getPermission`
 
- Get the value of a feature flag.
+ Get a single permission value for the specified key.

274-278: Grammar: Correct “signed in to”

 ### `getPermissions`
 
- Get the permissions for the current user for the organization they are signed into.
+ Get the permissions for the current user for the organization they are signed in to.
🧰 Tools
🪛 LanguageTool

[grammar] ~276-~276: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)


303-306: Grammar: Fix heading and apostrophe

- ### `getRoles`
- Get the users Roles
+ ### `getRoles`
+ Get the user's roles
🧰 Tools
🪛 LanguageTool

[uncategorized] ~305-~305: It looks like there might be a possessive apostrophe missing. Consider inserting it.
Context: .../ ] // } ``` ### getRoles Get the users Roles

Note: Roles are opti...

(AI_EN_LECTOR_MISSING_NOUN_POSSESSIVE)


379-382: Heading level: Promote “Caching Issues” to H2
This section is top-level content, not a sub-section of token utilities. Change:

- ### **Caching Issues**
+ ## Caching Issues

384-387: Grammar: Clarify .env file instruction

- 3. Make sure you have changed values in `.env` file.
+ 3. Make sure you have updated the values in your `.env` file.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~386-~386: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2050853 and 6ba83a1.

📒 Files selected for processing (1)
  • src/content/docs/developer-tools/sdks/native/expo.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/developer-tools/sdks/native/expo.mdx

[uncategorized] ~92-~92: You might be missing the article “an” here.
Context: ...k/#request-parameters). Logout accepts object which allows you to revoke the token `...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


[uncategorized] ~197-~197: A punctuation mark might be missing here.
Context: ...rrentOrganization` Returns the current users logged in organization code. ```typesc...

(AI_EN_LECTOR_MISSING_PUNCTUATION)


[grammar] ~276-~276: The verb ‘signed into’ is not standard English, except in the context of the law (“The bill was signed into law”). Write “signed in to”. For websites and computers, other options are “logged in to” or “logged on to”.
Context: ...rent user for the organization they are signed into. ```typescript getPermissions = async ...

(SIGN_INTO)


[uncategorized] ~305-~305: It looks like there might be a possessive apostrophe missing. Consider inserting it.
Context: .../ ] // } ``` ### getRoles Get the users Roles

Note: Roles are opti...

(AI_EN_LECTOR_MISSING_NOUN_POSSESSIVE)


[uncategorized] ~386-~386: You might be missing the article “the” here.
Context: ...3. Make sure you have changed values in .env file. 4. Trying to install package...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

🪛 Gitleaks (8.21.2)
src/content/docs/developer-tools/sdks/native/expo.mdx

372-372: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


373-373: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


374-374: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🔇 Additional comments (1)
src/content/docs/developer-tools/sdks/native/expo.mdx (1)

116-119: Inconsistent with AI summary: TokenUtils component not used
The summary indicates that token utilities are rendered via <TokenUtils> and tokenUtilsDocumentation, but this MDX still manually lists them. Please either import and use the shared <TokenUtils> component or update the summary to match the current content.

Likely an incorrect or invalid review comment.

Comment thread src/content/docs/developer-tools/sdks/native/expo.mdx
Comment on lines +29 to +35
## Installation with Expo Managed Workflow

### Install package

<PackageManagers pkg="@kinde/expo" />

### Setup provider
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Missing import for <PackageManagers> component
The MDX uses <PackageManagers pkg="@kinde/expo" /> at line 33 but there’s no corresponding import. Please add:

import PackageManagers from 'src/components/PackageManagers.astro';

@clairekinde11
Copy link
Copy Markdown
Contributor

Good from me @DanielRivers looks like coderabbit has a couple of comments to consider :)

@DanielRivers DanielRivers changed the title [do not merge] feat: start of expo guide feat: start of expo guide May 14, 2025
@DanielRivers DanielRivers merged commit cea3ec5 into main May 14, 2025
5 checks passed
@DanielRivers DanielRivers deleted the daniel/feat/expo branch May 14, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants