qor / auth

Golang Authentication solution
MIT License
716 stars 100 forks source link

added jwt token to json response #45

Open lutfuahmet opened 3 years ago

lutfuahmet commented 3 years ago

I added jwt token to json response.

Sample javascript client.

let response = fetch(protectedUrl, {
     headers: {
        Authentication: 'tokenxyz',
        ContentType: 'application/json',
        Accept: 'application/json',
    }
});