It seems to me that a god that was capable of admitting people to an afterlife would certainly know whether any last-minute redemptions were sincere.