(authData)
| 90 | } |
| 91 | |
| 92 | async validateAuthData(authData) { |
| 93 | const response = await this.requestTokenInfo(authData.access_token); |
| 94 | |
| 95 | if (!response.active || (this.useridField && authData.id !== response[this.useridField])) { |
| 96 | throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'OAuth2 access token is invalid for this user.'); |
| 97 | } |
| 98 | |
| 99 | return {}; |
| 100 | } |
| 101 | |
| 102 | async requestTokenInfo(accessToken) { |
| 103 | const response = await fetch(this.tokenIntrospectionEndpointUrl, { |
no test coverage detected