From 5908c38533046201041061250e76a70993914403 Mon Sep 17 00:00:00 2001 From: Danielle Adams Date: Wed, 27 Apr 2022 15:13:05 -0400 Subject: [PATCH] fix: update identity claim version change to next major --- .../src/__tests__/utils/warnings.test.ts | 4 ++-- .../amplify-graphql-auth-transformer/src/utils/warnings.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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', ); }