lynndylanhurley / devise_token_auth

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Do What The F*ck You Want To Public License
3.55k stars 1.14k forks source link

Allow extra data for new token creation method #1570

Open Zogoo opened 1 year ago

Zogoo commented 1 year ago

create_token method is allowing extra data but, create_new_auth_token is blocking that feature. And this will help users of this gem define their own logic with extra data.

MaicolBen commented 1 year ago

@Zogoo can you fix the spec?