Questions tagged [guardian-db]

3 questions
1
vote
2 answers

Problems with guardian - how generate access and refresh token in login

To invalidate JWTs, people use one of two methods blacklist/whitelist (with guardian_db). a refresh token (which allows regenerating access tokens) with a short expiring access token. I dont want to use guardian_db in my project. So, how i …
1
vote
1 answer

Guardian db not inserting record into database

My mix file contains {:guardian, "~> 1.0"}, {:guardian_db, "~> 1.1"}, and config contains config :my_app, MyApp.Guardian, issuer: "my_app", ttl: {30, :days}, allowed_drift: 2000, verify_issuer: true, # mix guardian.gen.secret (to…
Tanweer
  • 567
  • 1
  • 5
  • 17
0
votes
1 answer

Guardian DB Initial Setup (MyApp.Repo.insert/1 is undefined)

I am attempting to use guardian 0.14 and guardian_db 0.8 with elixir/phoenix. However, I keep running into the following error in the hooks: [error] #PID<0.983.0> running Api.Endpoint terminated Server: localhost:4000 (http) Request: POST…
steventnorris
  • 5,656
  • 23
  • 93
  • 174