wordpress_jwt_auth 1.0.0 copy "wordpress_jwt_auth: ^1.0.0" to clipboard
wordpress_jwt_auth: ^1.0.0 copied to clipboard

Dart client for the JWT Authentication for WP REST API WordPress plugin. Login, token validation, typed errors and pluggable token storage.

1.0.0 #

First release as a package. The repository previously held only the example app.

  • WordPressJwtAuth client for POST /jwt-auth/v1/token and POST /jwt-auth/v1/token/validate.
  • currentUser() reads the token owner from GET /wp/v2/users/me?context=edit, no plugin patch needed.
  • Optional register() against the endpoint shipped in wordpress/jwt-auth-register.php.
  • Sealed JwtAuthException hierarchy with HTML stripped messages: InvalidCredentialsException, InvalidTokenException, ServerConfigurationException, RegistrationException, NetworkException, UnexpectedResponseException.
  • JwtClaims decodes exp and the user ID from the token without a network call.
  • TokenStorage interface with InMemoryTokenStorage; the example app implements it with flutter_secure_storage.
  • JwtAuthInterceptor adds the bearer header to any Dio instance.
0
likes
160
points
19
downloads

Documentation

API reference

Publisher

verified publisherscriptyuvasi.com

Weekly Downloads

Dart client for the JWT Authentication for WP REST API WordPress plugin. Login, token validation, typed errors and pluggable token storage.

Repository (GitHub)
View/report issues

Topics

#wordpress #jwt #authentication #dio

License

MIT (license)

Dependencies

dio

More

Packages that depend on wordpress_jwt_auth