Skip to content

Conversation

SarahSoutoul
Copy link
Contributor

@SarahSoutoul SarahSoutoul commented Sep 1, 2025

🔎 Previews:

What does this solve?

This PR is waiting on this PR to be out

Linear: https://linear.app/clerk/issue/DOCS-10910/add-machine-auth-docs-for-astro-sdk

This was originally a ticket to add machine auth to the Astro SDK, as it's now supporting it. After working on it, I noticed a few discrepancies around machine auth for the other SDKs. Here are the things I noticed:

  • Missing machine auth docs for Nuxt SDK
  • Instances of machine_token instead of m2m_token, which is now the new name
  • Parameters for most SDKs around machine auth weren't right according to JS repo changes
  • secretKey parameter isn't needed anymore

What changed?

  • Added machine auth details and code examples for Astro + Nuxt SDKs
  • Changed all instances of machine_token to m2m_token
  • Updated the parameters for most SDKs in terms of machine auth after consulting with @wobsoriano & looking at JS repo changes
  • Removed secretKey parameter (not needed anymore)
  • Added a partial for acceptsToken parameter given it's being used in a lot of places now, and contains lots of. text

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • All existing checks pass

@SarahSoutoul SarahSoutoul self-assigned this Sep 1, 2025
Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
clerk-docs Ready Ready Preview Sep 5, 2025 6:49pm

@SarahSoutoul SarahSoutoul marked this pull request as ready for review September 2, 2025 16:59
@SarahSoutoul SarahSoutoul requested a review from a team as a code owner September 2, 2025 16:59
@SarahSoutoul SarahSoutoul changed the title Update machine auth docs after new additions (DO NOT MERGE) Update machine auth docs after new additions Sep 2, 2025
@SarahSoutoul
Copy link
Contributor Author

Thanks for review/ feedback @alexisintech - made all the changes here: Changes after feedback

Copy link
Member

@wobsoriano wobsoriano left a comment

Choose a reason for hiding this comment

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

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants