can I override the `getUserById` function?
# support-questions
d
can I override the
getUserById
function?
r
Yea. You should be able to override this too
but I don't know where it should be defined
r
Im not sure I understand what you mean by how it should be defined
d
maybe I should ask how to override it
r
which backend SDK?
oh right nodejs
d
yes, nodejs
r
Copy code
ThirdPartyEmailPassword.init({
    override: {
        functions: (oI) => {
            return {
                ...oI,
                getUserById: async function (input) {
                    // TODO..
                }
            }
        }
    }
})
d
thanks 🙂
@rp this returns an empty object in react native
let accessTokenPayload = await SuperTokens.getAccessTokenPayloadSecurely();
r
then it probably means that the access token payload is empty. Are you adding something to it on the backend?
d
no
r
that's why
d
can I do that here?