Skip to content

five-on-it / apps/api/src/oauth / purgeOAuthEvery

Function: purgeOAuthEvery() ​

purgeOAuthEvery(store, now, log?): () => void

Defined in: apps/api/src/oauth.ts:846

Forgets the expired codes, refresh tokens and grants every hour (and once at start); returns the function that stops it.

Parameters ​

store ​

Store

now ​

() => Date

log? ​

(message) => void

Returns ​

() => void