Thread
#general
    constantinos

    constantinos

    3 months ago
    When migrating from auth0, why is it recommended to map the supertokens user id in my db? I ll use the exported json method and in the frontend I ll keep using the auth0 id. (for old users only) Also, when calling backend functions such as
    getUserById
    , siince I override them, I would anyway have to look in the json every time. Am I missing something?
    r

    rp

    3 months ago
    If you have the JSON then you can just use that and not store in the db
    constantinos

    constantinos

    3 months ago
    Do I need to set this to false?
    // Box 7: Set the newly created flag value to false in the response response.createdNewUser = false I am thinking I should skip the whole condition (Box 5-7) ?
    r

    rp

    3 months ago
    Which page are you referring to?
    r

    rp

    3 months ago
    yea i mean you still have to map the supertokens user ID to the auth0 user ID right? Otherwise the userIds of the existing users will all change to the supertokens' user ID and then you have to migrate your application's tables accordingly
    you should set createdNewUser field as well - just cause maybe you read this somewhere else and then that logic shouldn't break
    constantinos

    constantinos

    3 months ago
    Ok yes you are right