Avengers: Endgame has given us a huge "sigh of relief" when Cap lifted Mjölnir.
But as we know from Thor: Ragnarok Mjölnir was just a way for Thor to channel his power of lightning. I repeat "THOR's" power, because he is the god of lightning.
So how did Captain America generate lightning bolts to fight Thanos in the endgame?
EDIT: I don't know why people are marking this as a duplicate of How did Captain America manage to do this? These are two different questions at their core. Here I am not questioning Captain America's worthiness for lifting Mjölnir, instead, the focus is on the power of generating bolts of lightning which are shown in the movie.