Current sessionTokens expire after a configured length of time after creation. For scheduled classes, this means that a user could request a new sessionToken at the end of class and be able to receive transcriptions from the following class. An option to expire sessionTokens on a schedule would prevent this.
- Create method to configure schedule (i.e list of cron expressions in .env, new config object, network)
- Modify logic in
RequestAuthorizer.computeNewSessionExpiry to compute expiry based on schedule.
Current
sessionTokens expire after a configured length of time after creation. For scheduled classes, this means that a user could request a newsessionTokenat the end of class and be able to receive transcriptions from the following class. An option to expiresessionTokenson a schedule would prevent this.RequestAuthorizer.computeNewSessionExpiryto compute expiry based on schedule.