Auth0 Home Blog Docs

Unable to set scope using iOS SDK



I am trying to use the webAuth api to login, here is my code:

    .scope("openid profile email read:users update:users update:current_user_identities user_id id sub v2_id update:users update:users_app_metadata update:current_user_metadata")
        .start {

            switch $0 {
            case .failure(let error):
                print("Error \(error)")

            case .success(let credentials):
                print ("Credentials: \(credentials)")

When I check credentials.scope I only get: openid, profile and email returned in the credentials. I need to be able to write to the user metadata and at the moment patch fails due to the bearer being invalid.

Am I missing something, or is there an error in the SDK. My colleagues doing this on Android do not seem to be having the same problems.