(authSecret: string, salt: Buffer)
| 152 | type EncryptedOAuthToken = z.infer<typeof encryptedOAuthTokenSchema>; |
| 153 | |
| 154 | function deriveOAuthKey(authSecret: string, salt: Buffer): Buffer { |
| 155 | return crypto.pbkdf2Sync(authSecret, salt, 100000, 32, 'sha256'); |
| 156 | } |
| 157 | |
| 158 | function isOAuthTokenEncrypted(token: string): boolean { |
| 159 | try { |
no outgoing calls
no test coverage detected