# Auth0 github sample code not working

**URL:** <https://community.auth0.com/t/auth0-github-sample-code-not-working/20899>\
**Category:** Get Help\
**Tags:** go\
**Created:** [February 3, 2019, 9:05pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899 "2019-02-03T21:05:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 3, 2019, 9:05pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/1 "2019-02-03T21:05:14Z")

</div>

Hello,

Should this sample code from auth0 still work? It _is_ 2+ years old:

[auth0-blog golang sample](https://github.com/auth0-blog/auth0-golang-jwt)

Downloading the code, setting up the API and all I get in the terminal is:

```
::1 - - [03/Feb/2019:15:58:19 -0500] "GET / HTTP/1.1" 200 906
::1 - - [03/Feb/2019:15:58:20 -0500] "GET /static/js/auth0-variables.js HTTP/1.1" 200 174
::1 - - [03/Feb/2019:15:58:20 -0500] "GET /static/js/app.jsx HTTP/1.1" 200 4574
algorithm is invalid
Token is not valid: <nil>

```

If I try **HS256** for grins I get “algorithm not supported”.

What am I missing?

JB

---

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 3, 2019, 9:18pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/2 "2019-02-03T21:18:22Z")

</div>

I see the problem with RS256, the github repo source is not setup for it…

Note that the HS256 code in that repo doesn’t work either…

You can delete this, I can’t 😉

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 11, 2019, 2:28pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/4 "2019-02-11T14:28:57Z")

</div>

Thanks a lot @omortis!

Sorry for the inconvenience! I’ll report it to appropriate team and see what can be done here!

Thank you a lot for reporting it!

---

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 11, 2019, 2:58pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/6 "2019-02-11T14:58:03Z")

</div>

@konrad.sopala I was able to get the RS256 style JWT to work quite easily so all is well, I think that sample code just needs a little updating. It also needs some CORS 😉

I’d be happy to help.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 11, 2019, 2:59pm UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/7 "2019-02-11T14:59:17Z")

</div>

Perfect! Let me get back to you once I have some info back from repo maintainer then!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 29, 2019, 10:46am UTC](https://community.auth0.com/t/auth0-github-sample-code-not-working/20899/8 "2019-08-29T10:46:00Z")

</div>


