angular-token icon indicating copy to clipboard operation
angular-token copied to clipboard

Add Angular 16 support

Open Ajax-ua opened this issue 1 year ago • 2 comments

ModuleWithProviders without a generic type is deprecated in Angular 16. So the package doesn't work after migration from Angular 15 to v16

Ajax-ua avatar May 12 '23 13:05 Ajax-ua

@neroniaky Do y'all have plans to support angular 16?

rfroetscher avatar Jun 06 '23 19:06 rfroetscher

what about Angular 16/17 support? Is this library dead already?

vmk-dev avatar Jan 16 '24 14:01 vmk-dev

@Ajax-ua did you find a solution? or another library to manage devise token auth?

fabricioflores avatar Jul 09 '24 22:07 fabricioflores

@fabricioflores No, seems like there is no alternative lib for that. We decided to implement our own solution

Ajax-ua avatar Jul 12 '24 07:07 Ajax-ua

So, it looks like in the library the underlying code is using things like CanActivate which was removed in version 16. The issue with the generic type argument is strange, because it does use a generic type argument in the code, but the generated .d.ts that is shipped does not include the generic. This is an easy fix as you simply need to override that to be ModuleWithProviders. But, it still breaks in Angular 16, I suspect due to the fact it is using a bunch of deprecated features.

I'm hoping that someone forks this and makes a compatible version.

raysuelzer avatar Aug 20 '24 22:08 raysuelzer