ServiceStack Javascript JsonServiceClient missing properties

前端 未结 1 1281
夕颜
夕颜 2021-01-24 00:58

I am trying to connect to a JWT authenticated service using the Servicestack JsonServiceClient, however the Docs only describe how to do this using the C# client:

http:/

相关标签:
1条回答
  • 2021-01-24 01:30

    Victory!

    My mistake was the header name. It's not "Authentication" it's "Authorization".

    So this works:

    this.client.headers.append("Authorization" , "Bearer " + jwtToken,);
    
    0 讨论(0)
提交回复
热议问题