My iPad Pro 9.7 does this occasionally too. It's like it's at the minimum screen brightness setting when the cover is opened. It goes to normal brightness within about 3 seconds after doing fingerprint authentication. I'm not worried about it. Probably an iOS bug.
I'm using both the Apple Smart Keyboard and Smart Cover.