Check for token before using it
Check for token before using it

Returning null from getCredentials isn't allowed, instead we need to
ensure that the token is fully present in the supports method first.

Also cleaned up typing and imports.

stopfstedt/ilios,Trott/ilios,stopfstedt/ilios,dartajax/ilios,ilios/ilios,Trott/ilios,ilios/ilios,dartajax/ilios,thecoolestguy/ilios,thecoolestguy/ilios