Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
fix: add function to check if error of user not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Feb 9, 2020
1 parent b297906 commit b9fdf25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firebase/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ func (err Error) Error() string {
}
return err.OriginalError.Error()
}

//IsUserNotFound check if an error is of type UserNotFound
func IsUserNotFound(err error) bool {
return auth.IsUserNotFound(err)
}

0 comments on commit b9fdf25

Please sign in to comment.