janko / rodauth-rails

Rails integration for Rodauth authentication framework
https://github.com/jeremyevans/rodauth
MIT License
584 stars 40 forks source link

JWT in the response body #47

Closed dcalixto closed 3 years ago

dcalixto commented 3 years ago

@janko , Just one doubt! after setup the jwt config create the account and login the auth_token goes to headers, where should get by response body

r-header

So, i would like to know how to get jwt in the response body.

axios

dcalixto commented 3 years ago

just use to configure the jwt as jeremy replied!

 set_jwt_token do |token|
    json_response['jwt'] = token
  end