I need to create some custom attributes while registering user. I can do that successfully (Vue) with:
methods: {
async signUp () {
const { username, password } = this.form;
try {
this.error = '';
await this.$Amplify.Auth.signUp({
username,
password,
attributes: {
'custom:my_attribute': 'some data',
},
});
this.isSignedUp = true;
} catch (e) {
this.error = e.message;
}
}
}
However I would like to do similar with federatedSignIn. Is there any possibility to save custom attribute with that method? Is there any other method to achieve that?
I was trying this:
await this.$Amplify.Auth.federatedSignIn({ provider, attributes: { 'custom:my_attribute': 'some data' } })
and that didn't work.
I am using cognito user pool.