feat: Add afterFind trigger to authentication adapters (#8444)

This commit is contained in:
Daniel
2023-03-06 11:35:15 +11:00
committed by GitHub
parent 87cab09b6a
commit c793bb88e7
6 changed files with 95 additions and 4 deletions

View File

@@ -93,6 +93,24 @@ export class AuthAdapter {
challenge(challengeData, authData, options, request) {
return Promise.resolve({});
}
/**
* Triggered when auth data is fetched
* @param {Object} authData authData
* @param {Object} options additional adapter options
* @returns {Promise<Object>} Any overrides required to authData
*/
afterFind(authData, options) {
return Promise.resolve({});
}
/**
* Triggered when the adapter is first attached to Parse Server
* @param {Object} options Adapter Options
*/
validateOptions(options) {
/* */
}
}
export default AuthAdapter;