Simple piece of code that shows a really basic way to login, revoke token and refresh token with WME Authentication API.
-
First just export environment variables:
export WME_USERNAME="superuser"; export WME_PASSWORD="secret";
-
Then you should be able to just run:
go run main.go
-
Note that if you are running this from the root use this command:
go run example/auth/main.go