CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

RWAuth 1.0.1

RWAuth 1.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Roman Gal.



RWAuth 1.0.1

  • By
  • Weezlabs

RWAuth-ios

iOS lib written in Swift that takes care about all basic auth features provided by any RW backend.

Features

  • [x] Sign Up
  • [x] Sign In
  • [x] Sign Out
  • [x] Request Recovery Code
  • [x] Set New Password
  • [x] Check Email
  • [x] Manualy Tokens Refresh

Requirements

  • iOS 8.0+
  • Xcode 7.0+

Installation

Usage

AuthPath

Standart Auth Path defined in AuthPath.swift. If you want to change defaults paths, scheme and host appropriately to yours Auth Paths, do next:

AuthPath.signUp = "/new/signup/path"

User

To access auth fuctionality use User’s class methods. For example:

User.signInWithEmail(email, password: password) { (innerResult) -> Void in
    // do something with innerResult
}

Result

Most methods have closure argument of type Result<Any, NSError>. That type may contains parsed JSON as [String: AnyObject] or NSError with error discription.