Authenticate with OTP (one-time-password)

Hi guys,
I want to provide to a large number of users the short-time API_KEY (about 5 or 10 minutes) to execute some simple task, then expire these keys. I intend to use UserLoginKey entity for this purpose, but I’m afraid that the number of records of this entity will increase rapidly. Are there better solutions for this issue?

Kieuanhvu, it appears the keys are short lived but high volume, did you consider purging these records periodically on a weekly basis (or even daily if you want to be aggressive), Also if you need these records for audit purposes, you might want to consider archive instead of purging,

2 Likes

Hi integrin, that’s one of the good ideas for me

1 Like