ios - Amazon Cognito - Convert Guest user identity as Authenticated user -


i using amazon cognito service in xamarin ios application have feature user login guest , using facebook account. facebook login feature working great, want add option guest user convert guest account facebook authenticated account.

i have added user history dynamodb table according user identity id both guest , facebook authenticated user. when guest account converted facebook authenticated account, need identity id same. possible?

currently have sync guest information without calling

credential.addlogin(provider,token); 

this creates unauthenticated identity , stores info.

i thought without clearing identity cache, if try login using facebook, identity merged authenticated identity. not happening.

how can achieve this?

have seen this page? specifically, have tried doing this?

cognitoawscredentials credentials = new cognitoawscredentials (     "identity_pool_id",    // cognito identity pool id      regionendpoint.useast1 // region ); ... credentials.addlogin("graph.facebook.com", accesstoken.token); ... var identityid = await credentials.getidentityidasync(); 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -