withHosts(String hosts, String apiKey) - ; separated string for all the locations of SuperTokens instances. An optional apiKey argument.
withAccessTokenPath(string) - See access_token_path in the config.yaml file
withRefreshApiPath(string) - See refresh_api_path in the config.yaml file
withCookieDomain(string) - See cookie_domain in the config.yaml file
withCookieSecure(boolean) - See cookie_secure in the config.yaml file
withCookieSameSite(string) - See cookie_same_site in the config.yaml file
There are more config values in the config.yaml file (for on premise) or on the SaaS dashboard. The values you set via the init function above will override those.
2) Create a refresh API
This API will be used to get new access and refresh tokens (done automatically from our frontend SDK).