jwt-go VS goth

Compare jwt-go vs goth and see what are their differences.

jwt-go

ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at: (by dgrijalva)

goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications. (by markbates)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
jwt-go goth
14 7
10,354 4,943
- -
1.0 6.2
over 2 years ago 15 days ago
Go Go
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

jwt-go

Posts with mentions or reviews of jwt-go. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-08.

goth

Posts with mentions or reviews of goth. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-31.
  • How to build Auth in 2023 with go?
    6 projects | /r/golang | 31 May 2023
    Also really easy to implement as there are libraries that do all the heavy lifting for you (https://github.com/markbates/goth is a great starting place IMHO)
  • Why use a 'global' anonymous function instead of a named one?
    1 project | /r/golang | 14 Mar 2023
    In the package 'markbates/goth' that provides a client implementation of OAuth 2.0, the authors have defined the function CompleteUserAuth at the package level like this:
  • Authentication in Go? Best practices
    4 projects | /r/golang | 7 Mar 2023
  • Single sign on with LinkedIn
    1 project | /r/golang | 4 Dec 2022
    You can use oauth2. Just take e.g. a look at the dex documentation dex. Dex is not a library but a standalone federated oidc provider. Highly recommended. For libraries take a look at goth.
  • Simple web app, how to do auth?
    11 projects | /r/golang | 2 Nov 2022
  • The impossible case of pitching rust in a web dev shop
    11 projects | /r/programming | 22 Sep 2022
    For the kind of websites I prefer to build -- server side rendered with HTMX/Alpine for the extra niceness -- Rust I think could be a very good fit. The main downside for my personal projects is the ecosystem. E.g., a good standard way to handle CSRF tokens, standardised oauth2 implementations (like https://github.com/markbates/goth in Go), things like that. I found myself having to write a lot of code that just exists in the Go ecosystem. The main downside for a business is that it's going to make it harder to hire, since Rust genuinely requires more skill. Yes, developers will make mistakes in Go, as it's far too easy to do things like access shared memory in dangerous ways. But on the flip side, it's a lot easier for them to deliver a feature. In a choice between shipping a feature that is buggy in hard to detect ways, vs not being able to deliver at all because you can't get developers, I think it's better to ship.
  • เขียน Go ต่อ Oauth ทุกค่าย
    1 project | dev.to | 2 Nov 2021

What are some alternatives?

When comparing jwt-go and goth you can also consider the following projects:

go-jose - An implementation of JOSE standards (JWE, JWS, JWT) in Go

oauth2 - Go OAuth2

authelia - The Single Sign-On Multi-Factor portal for web apps

go-oauth2-server - A standalone, specification-compliant, OAuth2 server written in Golang.

fiber-jwt - JWT for fiber

authboss - The boss of http auth.

gologin - Go login handlers for authentication providers (OAuth1, OAuth2)

casbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN

jwt-auth - This package provides json web token (jwt) middleware for goLang http servers