SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

API for specifying required options for each provider.

Open calebd opened this issue 10 years ago • 2 comments

calebd avatar Jan 23 '14 23:01 calebd

On the same subject, which is currently the fastest way to see the required options and their keys? It would be nice if every provider header file has the required optoins keys ;) simple and effective.

alexito4 avatar Feb 03 '14 14:02 alexito4

That's a good question. I can certainly put them in the header file. That would even help get them into CocoaDocs. I think I might make a requiredOptions method on SimpleAuthProvider as well so that developers don't use the API and see a crash on some background thread or something. Maybe -[SimpleAuthProvider initWithOptions:] would check the options against required values right away to give you instant feedback.

calebd avatar Feb 03 '14 16:02 calebd