Skip to content

1.0.0-rc.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@hzalaz hzalaz released this 09 Sep 19:09
· 705 commits to master since this release
8ae8eb1

Full Changelog

Changed:

Breaking changes:

The function enableLogging() was removed, so now to enable logging in the library you should enable it per-client instead of globally.

For Auth API

var auth = Auth0.authentication()
auth.logging(enabled: true)

For Users API

var users = Auth0.users(token: "token")
users.logging(enabled: true)

Also now you can provide a custom Logger to replace the default one (which just uses Swift print). It only needs to implement the protocol Logger

let logger = MyCustomLogger()
var auth = Auth0.authentication()
auth.usingLogger(logger)