diff --git a/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts b/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts index fcb43b5944a..16d605b8914 100644 --- a/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts +++ b/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts @@ -109,8 +109,8 @@ describe('showDefaultIdentityClaimWarning', () => { expect(printer.warn).toBeCalledTimes(1); expect(printer.warn).toBeCalledWith( ' WARNING: Amplify CLI will change the default identity claim from \'username\' ' - + 'to use \'sub:username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' - + '\'owner\' rules on your schema. The default will be officially switched with v8.0.0. To read ' + + 'to use \'sub::username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' + + '\'owner\' rules on your schema. The default will be officially switched with v9.0.0. To read ' + 'more: https://link.to/docs-and-migration-gudes', ); }); diff --git a/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts b/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts index ecbadc2249a..876d51e2e3f 100644 --- a/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts +++ b/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts @@ -17,8 +17,8 @@ export const showDefaultIdentityClaimWarning = (context: TransformerContextProvi printer.warn( ' WARNING: Amplify CLI will change the default identity claim from \'username\' ' - + 'to use \'sub:username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' - + '\'owner\' rules on your schema. The default will be officially switched with v8.0.0. To read ' + + 'to use \'sub::username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' + + '\'owner\' rules on your schema. The default will be officially switched with v9.0.0. To read ' + 'more: https://link.to/docs-and-migration-gudes', ); }