API cleanups on GetContext

Moving context check to right before authInfo.