You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions/index.mdx
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ let interceptor = AppSyncInterceptor(authorizer)
121
121
Create the AuthTokenAuthorizer with this method.
122
122
123
123
```kotlin
124
-
let authorizer =AuthTokenAuthorizer(fetchLatestAuthToken: getLatestTokenFromAmplify)
124
+
val authorizer =AuthTokenAuthorizer { ApolloAmplifyConnector.fetchLatestCognitoAuthToken() }
125
125
```
126
126
127
127
</InlineFilter>
@@ -224,7 +224,7 @@ The schema is used by Apollo’s code generation tool to generate API code that
224
224
1. Navigate to your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home)
225
225
2. On the left side, select Schema
226
226
3. When viewing your schema, there should a “Export schema” drop down. Select this and download the `schema.json` file.
227
-
4. Add this file to your project as directed by [Apollo Code Generation documentation](https://www.apollographql.com/docs/ios/code-generation/introduction)
227
+
4. Add this file to your project as directed by [Apollo documentation](https://www.apollographql.com/docs/kotlin/advanced/plugin-recipes#specifying-the-schema-location)
0 commit comments