Skip to content

Instantly share code, notes, and snippets.

View opotapov-sygic's full-sized avatar

Alex Potapov opotapov-sygic

View GitHub Profile
@opotapov-sygic
opotapov-sygic / FIRerrors.swift
Created September 27, 2017 11:27
Firebase errors descriptions
//source https://stackoverflow.com/questions/39644934/firebase-authentication-error-handling
guard let error = FIRAuthErrorCode(rawValue: (error?._code)!) else {
return
}
fireErrorHandle(code: error)
func fireErrorHandle(code: FIRAuthErrorCode) {
switch code {
case .errorCodeInvalidCustomToken: