AWS Cognito - Invalid Refresh Token

后端 未结 2 2029
清歌不尽
清歌不尽 2021-01-04 03:51

I am using the Amazon Cognito service with the amazon-cognito-identity-js library, and am having an issue refreshing a user\'s tokens, namely the id token.

When tryin

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 04:24

    I've found the answer.

    As it turns out, it wasn't really an invalid refresh token; at least in the sense of the object itself.

    If you have device tracking enabled, then you must pass the users device key in the AuthParameters (which I wasn't doing).

    I read through the description of device tracking, as found here, and it didn't seem applicable for my use-case so I simply turned it off (User Pool > Devices).

    The above code worked after that.

提交回复
热议问题