OAuth2 Authentication API

nandasafiqalfiansyah

Nanda Safiq Alfiansyah

Posted on November 26, 2024

OAuth2 Authentication API

This package provides a simple API for authenticating users using OAuth2 with Google as the provider. It includes endpoints to initiate the authentication process and handle callback responses.

link : https://go-oauth.vercel.app
repo : https://github.com/nandasafiqalfiansyah/go-oauth.git

Features
OAuth2 Integration: Supports Google OAuth2 for user authentication.
User Information Retrieval: Fetches and returns authenticated user information such as email, name, and profile picture.
Scalable Design: Implements the Gin web framework for efficient routing and request handling.

Endpoints

  1. Root Endpoint (/)
    Redirects users to Google's OAuth2 authorization page.

  2. Callback Endpoint (/auth/callback)
    Handles OAuth2 callback, retrieves the access token, and fetches user information.

💖 💪 🙅 🚩
nandasafiqalfiansyah
Nanda Safiq Alfiansyah

Posted on November 26, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

OAuth2 Authentication API
webdev OAuth2 Authentication API

November 26, 2024