Update wrappers for generateToken and createSession