v1.0.3

Removed API

Last updated


This page lists public symbols removed or renamed across versions, with the removal version and the replacement, for use while upgrading.

v1.0.3: Import Path Moved to core/


v1.0.3 moved the implementation into the core/ subpackage; the root package github.com/pardnchiu/go-jwt exports nothing. Symbol names and behavior are unchanged; only the import path changes:
  1. // Old
  2. import goJwt "github.com/pardnchiu/go-jwt"
  3. // New
  4. import goJwt "github.com/pardnchiu/go-jwt/core"

SymbolPackageStatusLast presentReplacement
Auth, Config, Cookie, File, JWTAuth, JWTAuthResult, Option, Pem, Redis, RefreshData, RefreshId, TokenResultgo-jwtRemoved in v1.0.3v1.0.2Same-named types in core
New, GetAuthDataFromGinContext, GetAuthDataFromHTTPRequestgo-jwtRemoved in v1.0.3v1.0.2Same-named functions in core
JWTAuth.Close, JWTAuth.Create, JWTAuth.GinMiddleware, JWTAuth.HTTPMiddleware, JWTAuth.Revoke, JWTAuth.Verifygo-jwtRemoved in v1.0.3v1.0.2Same-named methods in core

v1.0.1: Logging Moved to log/slog


SymbolPackageStatusLast presentReplacement
Loggo-jwtRemoved in v1.0.1v1.0.0No public replacement; logging goes through internal log/slog to syslog
Loggergo-jwtRemoved in v1.0.1v1.0.0No public replacement

v0.6.1: Logging Moved to go-logger


SymbolPackageStatusLast presentReplacement
LoggerConfiggo-jwtRemoved in v0.6.1v0.6.0No public replacement
Logger.Close, Logger.Critical, Logger.Debug, Logger.Error, Logger.Fatal, Logger.Flush, Logger.Info, Logger.Notice, Logger.Trace, Logger.Warninggo-jwtRemoved in v0.6.1v0.6.0No public replacement

v0.6.0: Configuration Restructure


SymbolPackageStatusLast presentReplacement
AuthDatago-jwtRemoved in v0.6.0v0.5.0Auth
AuthResultgo-jwtRemoved in v0.6.0v0.5.0JWTAuthResult
RedisConfiggo-jwtRemoved in v0.6.0v0.5.0Redis
RefreshIDgo-jwtRemoved in v0.6.0v0.5.0RefreshId
JWTAuth.Refreshgo-jwtRemoved in v0.6.0v0.5.0Triggered automatically by Verify (see Transparent Refresh)

v0.5.0: Logger API Changes


SymbolPackageStatusLast presentReplacement
NewLoggergo-jwtRemoved in v0.5.0v0.4.0No public replacement
Logger.Create, Logger.Init, Logger.Refresh, Logger.Verifygo-jwtRemoved in v0.5.0v0.4.0No public replacement

v0.4.0: Internal Methods Unexported


SymbolPackageStatusLast presentReplacement
JWTAuth.ClearCookie, JWTAuth.SetCookiego-jwtRemoved in v0.4.0v0.3.0Handled inside Create/Revoke; set cookie attributes via Config.Cookie
JWTAuth.CreateRefreshId, JWTAuth.GetRefreshData, JWTAuth.GetRefreshIdgo-jwtRemoved in v0.4.0v0.3.0No public replacement
JWTAuth.GetAccessToken, JWTAuth.GetFingerprint, JWTAuth.GetUserDatago-jwtRemoved in v0.4.0v0.3.0No public replacement; user data comes from Data returned by Verify
中文