Skip to content

Commit

Permalink
Fix error type accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Jul 30, 2017
1 parent e7e084d commit 43e71f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/FirebaseVerifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import JWT

private let verifyIdTokenDocsMessage = "See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token."
private let projectIdMatchMessage = "Make sure the ID token comes from the same Firebase project as the service account used to authenticate this SDK."
enum VerificationErrorType {

public enum VerificationErrorType {
case
notFound(key: String),
emptyProjectId,
Expand All @@ -15,7 +16,7 @@ enum VerificationErrorType {
issuedAtTimeIsNotPast
}

struct VerificationError: Error {
public struct VerificationError: Error {
let type: VerificationErrorType
let message: String?
}
Expand Down

0 comments on commit 43e71f3

Please sign in to comment.