How to use the GitHub rest API with SvelteKit

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • To set up an OAuth app with GitHub, go to Your Profile > Settings > Developer Settings > OAuth Apps > New OAuth App or alternatively, go to this link if you're already logged into GitHub.

  • oauth

    // Address to make a request to const target = "https://github.com/login/oauth/authorize"; // Import from environment variables const clientId = import.meta.env.VITE_CLIENT_ID; // Send a request to the target URL with some parameters export async function get(request) { const sessionId = "1234"; return { // 302 is a redirect status code status: 302, headers: { location: `${target}?client_id=${clientId}&state=${sessionId}`, }, }; }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project