Generating API tokens using node

后端 未结 4 1438
野趣味
野趣味 2021-02-01 20:28

I am writing an app that will expose an API. The application allows people to create workspaces and add users to them. Each user will have a unique token. When they make an API

4条回答
  •  野性不改
    2021-02-01 21:11

    I think the following are the best solution for Generating API tokens

    • JWT (Json web Token)
    • Speakeasy - This generate token based on timebased twofactor authentication like google authenticator

    Speakeasy is more secure because this key is only available for a small time period (e.g, 30 second)

提交回复
热议问题