Replies: 7 comments 2 replies
|
@webafra You can create your own JWT service like this example, then bind it to binding key that |
|
Can we create API without using model and repository in loopback4?? |
|
@Arathy-sivan very possible. The default ping controller is a good example of such a case |
Please see @jannyHou above and let me know if you still need help. I will be glad to help |
|
how can we generate token without using model and repository in loopback4? |
|
@Lipinalipi If you don't need persistence, you can just generate token using services like https://github.com/strongloop/loopback-next/blob/master/extensions/authentication-jwt/src/services/jwt.service.ts, see function generateToken. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I want to use this service to develop my own personalized authentication.
The code I wrote does not work because method (generateToken) inputs argument must be an email and a name.
I want to authenticate with a mobile number.
please help me.
All reactions