OAuth2 Authentication API
Nanda Safiq Alfiansyah
Posted on November 26, 2024
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
Root Endpoint (/)
Redirects users to Google's OAuth2 authorization page.Callback Endpoint (/auth/callback)
Handles OAuth2 callback, retrieves the access token, and fetches user information.
Posted on November 26, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.