lynndylanhurley / lynndylanhurley/devise_token_auth

NoMethodError (super: no superclass method `create_token' for #<User:0x000055b9ceeeac68>)

Open
#1,384 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
3.6k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi. I got a a error ```NoMethodError (super: no superclass method `create_token' for #)```.
My code:
```
def create_token(client: nil, lifespan: nil, cost: nil, **token_extras)
super
end
```
Ruby version: 2.6.3
Rails version: 6.0.2.1
Gem version: 1.1.3

Contributor guide

Open the contributing guide

Research direction

Begin with the reported create_token override under Ruby 2.6.3, Rails 6.0.2.1, and gem 1.1.3, then inspect the gem's token-creation path to determine why super has no target. Done requires a reproducible diagnosis and an agreed fix or documentation, but the issue supplies no file, test, or acceptance criterion.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.